oskar509
asked on
MS Server 2008 x64, SQL Server 2008, doesn't recognize my dsn from perl script
Hello,
I have a perl script that I use to remotely connect to my SQL Server 2008 database on my server running MS Server 2008. Uses something like $dbh = DBI->connect("DBI:ODBC:DSN name",,,{R aiseError= > 1}). Works great.
But when I try to run the script from the server, it can't find the dsn name.
I installed activestate perl, DBI & ODBC from ppm, created the dsn in ODBC Administrator identical to the one on my client machine running Windows XP. I've created the dsn using the server name, and then using "local". Both test "successful" in making a connection.
So, I have a perl script from the O'Reilly book "Programming the Perl DBI" the will find and print out all of your drivers with all of their dsn's. When run from my server, it lists only:
dbi:ODBC:dBASE files
dbi:ODBC:Excel files
dbi:ODBC:MS Access database
In other words, only the default User dsn's.
When run from my client machine, it lists these 3, plus:
dbi:ODBC:dsnName1
dbi:ODBC:dsnName2
aka, the dsn's I've created under System DSN.
So why isn't the perl script finding the System DSN I've made over on the server?
Thanks so much!
oskar
I have a perl script that I use to remotely connect to my SQL Server 2008 database on my server running MS Server 2008. Uses something like $dbh = DBI->connect("DBI:ODBC:DSN
But when I try to run the script from the server, it can't find the dsn name.
I installed activestate perl, DBI & ODBC from ppm, created the dsn in ODBC Administrator identical to the one on my client machine running Windows XP. I've created the dsn using the server name, and then using "local". Both test "successful" in making a connection.
So, I have a perl script from the O'Reilly book "Programming the Perl DBI" the will find and print out all of your drivers with all of their dsn's. When run from my server, it lists only:
dbi:ODBC:dBASE files
dbi:ODBC:Excel files
dbi:ODBC:MS Access database
In other words, only the default User dsn's.
When run from my client machine, it lists these 3, plus:
dbi:ODBC:dsnName1
dbi:ODBC:dsnName2
aka, the dsn's I've created under System DSN.
So why isn't the perl script finding the System DSN I've made over on the server?
Thanks so much!
oskar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER