Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: SQL Server 2000 DBI Authentication

by Narveson (Chaplain)
on Aug 06, 2009 at 20:49 UTC ( [id://786579]=note: print w/replies, xml ) Need Help??


in reply to SQL Server 2000 DBI Authentication

Looks like you're connecting with ODBC. An ODBC connect string is a list of name-value pairs. For Windows authentication, omit UID=$usr;PWD=$pw; and instead say Trusted_Connection=Yes;.

For comparison, here's a code snippet I use to connect to SQL Server databases using DBI::ODBC. You may want to keep your value for DRIVER.

my $connect_string = 'DRIVER={SQL Server};' . "SERVER=$server;" . 'Trusted_Connection=Yes;' ; my $dbh = DBI->connect( "dbi:ODBC:$connect_string", undef, undef, { RaiseError => 1 }, );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://786579]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-16 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found