Ardenstone has asked for the wisdom of the Perl Monks concerning the following question:
If I try that on the 2k box, I get the following error: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Is there a monk who has solved this in any way other than writing:use Win32::ODBC my $DSN = "myDSN"; my $db = new Win32::ODBC($DSN);
Note that this is a System DSN and since the second one works great I'm fairly sure my SQL user, etc. are correct. I've been looking towards DBI, but would rather not re-write all these apps right now.my $db = new Win32::ODBC("DSN=$DSN;UID=$DSNuserName;PWD=$DSNpassword") +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::ODBC vs. Win/MSSQL 2000
by growlf (Pilgrim) on Nov 10, 2001 at 17:17 UTC | |
by Ardenstone (Acolyte) on Nov 10, 2001 at 20:07 UTC | |
by growlf (Pilgrim) on Nov 11, 2001 at 03:59 UTC | |
by Ardenstone (Acolyte) on Nov 14, 2001 at 00:22 UTC | |
by growlf (Pilgrim) on Nov 21, 2001 at 14:27 UTC | |
|
Re: Win32::ODBC vs. Win/MSSQL 2000
by 2501 (Pilgrim) on Nov 10, 2001 at 03:50 UTC | |
by Ardenstone (Acolyte) on Nov 10, 2001 at 04:16 UTC |