blackadder has asked for the wisdom of the Perl Monks concerning the following question:
The errors I received were;use strict; use warnings 'all'; use Win32; use Win32::ODBC; my $dsn = "LNB_HHH_APP"; if (!(my $db = new Win32::ODBC($dsn))) { print "\nError connecting to $dsn\n\n"; print "\nError: " . Win32::ODBC::Error() . "\n"; exit; }
Can someone please shed some light on to this and why am I not able to connect successfully to the Sybase database? Is it to do with credentials? And How can I incorporate the user name and password to connect to the database within my script? Or do I need different Perl module for Sybase or another driver?Error connecting to LNB_HHH_APP Error: [911] [] "[MERANT][ODBC Sybase Wire Protocol driver]Insufficien +t information to connect to the data source."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Connecting to Sybase using Win32::ODBC
by inman (Curate) on Jun 09, 2004 at 10:50 UTC | |
by Anonymous Monk on Jun 09, 2004 at 13:42 UTC | |
by blackadder (Hermit) on Jun 09, 2004 at 15:38 UTC | |
by paulbort (Hermit) on Jun 09, 2004 at 18:15 UTC |