campblem has asked for the wisdom of the Perl Monks concerning the following question:
...hard-coding the driver name#my($driver) = "/usr/lib/libiodbc.so";
...trying "Proxy" just for grins, as in:my($driver) = "ODBC";
my($driver) = "Proxy"
my($host) = "<my IP address>"; my($db) = "myDb\@$host"; my($port) = 1433; my($dsn) = "dbi:$driver:database=$db;port=$port" my($dbh) = DBI->connect("dbi:ODBC:$db;$port", "me", "mypassword") || +die(DBI->errstr);
[dbi:ODBC:database=myDB@oag7.oag.local:1433] DBI connect('myDB@host;1433','me','myPassword') failed: [iODBC][Driver + Manager]Data source name not found and no default driver specified. +Driver could not be loaded (SQL-IM002) at ./sqlTest.pl line 30 [iODBC][Driver Manager]Data source name not found and no default drive +r specified. Driver could not be loaded (SQL-IM002) at ./sqlTest.pl l +ine 30. ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl, DBD and SQL Server 2008 (R2)
by roboticus (Chancellor) on Feb 02, 2011 at 23:55 UTC | |
|
Re: Perl, DBD and SQL Server 2008 (R2)
by mje (Curate) on Feb 03, 2011 at 09:47 UTC | |
by campblem (Initiate) on Feb 03, 2011 at 18:51 UTC | |
by mje (Curate) on Feb 04, 2011 at 15:19 UTC | |
by Anonymous Monk on Mar 24, 2011 at 23:44 UTC |