in reply to Re: Perl connect to Microsoft SQL 2000
in thread Perl connect to Microsoft SQL 2000
Those are for the client only, the server shouldn't need any setup beyond a login to connect with.c:\> ppm install DBD-ODBC
#$winauth is set from the command line to force 'Windows Authenticatio +n' my $auth = $winauth ? 'Trusted_Connection=yes' : "uid=$username;pwd=$p +assword;"; my $DSN = "driver={SQL Server};Server=$server;database=$database;$auth +"; my $dbh = DBI->connect("dbi:ODBC:$DSN") || die "Error: $DBI::errstr";
|
|---|