"be consistent" | |
PerlMonks |
Re: DBD::ODBC connection probby Rich36 (Chaplain) |
on Mar 04, 2003 at 22:08 UTC ( [id://240464]=note: print w/replies, xml ) | Need Help?? |
You should just be able to use
I had some problems with that when trying to use Win32::ODBC with a Access database. What I ended up doing was writing a file DSN on the fly, then cleaning it up on exit. That seemed to work a little better for me. It was something like this:
Where I had previously defined the access file name ($file ), data directory ($datadir ) and then used $accessdsn as the parameter for the call. All I did was create a working file DSN for the database, then copy the contents into my application, changing certain elements to variables. In your case, if the datadir and file name are constant, you could probably just have all the values hardcoded or just put a file DSN in with the Access database. «Rich36»
In Section
Seekers of Perl Wisdom
|
|