JL has asked for the wisdom of the Perl Monks concerning the following question:
In other words, what piece of code connect perl through ODBC to the mimer database.
I have tried the following whithout success:
As a result I get a segmentation fault (core dump)! What's wrong?use DBI; $ dbh = DBI->connect("dbi:ODBC:KURS","userid","password") ||die print $DBI::errstr; $mot=$dbh->prepare("SELECT * from test1"); $mot->execute; $mot->finish; $dbh->disconnect;
I appreciate any help I can get. /Johan
update Masem - fixed typo in title
Edit by tye - moved to SOPW and HTMLized formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What code should I write in Perl to connect to an ODBC DB on a linux platform?
by Arguile (Hermit) on Jun 19, 2001 at 03:49 UTC |