laziness, impatience, and hubris | |
PerlMonks |
Difficulty Connecting to MS-SQL server in Linuxby MegaVoice (Novice) |
on Jul 13, 2007 at 17:53 UTC ( [id://626496]=perlquestion: print w/replies, xml ) | Need Help?? |
MegaVoice has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am currently trying to connect to a MS-SQL server in Linux. I have using the Sybase method to connect, but recently ran into an issue with a different server.
All of the previous servers have been straightforward, but this one has a slash in the name of the server. It is called ORCXPDB1C2\SQL. I add an additional slash in the server definition, but I am still having troubles connecting.
Here is the connection information: use DBI; my $user = "xyz"; my $passwd = "xyx2"; my $server = "ORCXPDB1C2\\SQL"; my $dbh = DBI->connect("DBI:Sybase:server=$server", $user, $passwd, {PrintError => 0}); If I connect to MS SQL servers without the slash, I can connect just fine with the above method. Not sure how to get around this issue. Thank you!
Back to
Seekers of Perl Wisdom
|
|