in reply to Re: connecting Perl with MS SQL Server on NT using ODBC
in thread connecting Perl with MS SQL Server on NT using ODBC
i'm getting a similar problem with SQL Server ( I'm on windows )
But i'm getting the following error:use DBI; my $user = "rodrigo"; my $pass = "123456"; my $server = "localhost\\WHATSUP:3477"; my $database_name = "equip"; my $DSN = "driver={SQL Server};server=$server;database=$database_name; +uid=$user;pwd=$pass"; my $DBH = DBI->connect("DBI:ODBC:$DSN") or die "Couldn't open database +: $DBI::errstr\n";
I have no idea what should i do. Thanks in advancedDBI connect('driver={SQL Server};server=localhost\WHATSUP:3477;databas +e=equip;uid=rodrigo;pwd=123456','',...) failed: [Microsoft][ODBC SQL +Server Driver][DBNETLIB]Invalid connection. (SQL-08001) [st ate was 08001 now 01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConn +ectParams()). (SQL-01000) at C :\fsecali\connectDB.pl line 9 Couldn't open database: [Microsoft][ODBC SQL Server Driver][DBNETLIB]I +nvalid connection. (SQL-08001) [state was 08001 now 01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConn +ectParams()). (SQL-01000)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: connecting Perl with MS SQL Server on NT using ODBC
by poj (Abbot) on Dec 29, 2011 at 17:12 UTC | |
by Secalles (Initiate) on Dec 29, 2011 at 17:26 UTC | |
by poj (Abbot) on Dec 29, 2011 at 17:40 UTC | |
by Secalles (Initiate) on Dec 29, 2011 at 17:47 UTC | |
by poj (Abbot) on Dec 29, 2011 at 17:56 UTC | |
|