|There's more than one way to do things|
ODBC and OLE DBby b0dh1 (Initiate)
|on May 25, 2000 at 19:31 UTC||Need Help??|
b0dh1 has asked for the
wisdom of the Perl Monks concerning the following question:
I'm a perl newbie, so this could be really easy, but I just can't get it.
I've got two scripts: one that reads the data from a text file into a recordset and writes it to an Access database using an ODBC connection, and one that reads through the same db and writes out the contents of the recordset using an OLE DB connection.
What I'm trying to do is write these as one script that reads through the db, and if a field match is not found it writes the data from the textfile to the db... but it won't work.
With OLE DB I get a "not enough storage is available to complete this operation" error when trying to write to the db, and with ODBC I can't open a recordset to iterate through, "Can't locate auto/Win32/ODBC/execute.al in @INC"
I'm running the latest build of ActivePerl on a WinNT machine. Any help would be greatly appreciated. Thanks.