Help for this page

Select Code to Download


  1. or download this
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]SSL Security error (SQL-0
    +8001) [state was 08001 now 01000]
    [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (SECCreate
    +Credentials()). (SQL-01000) [state was 01000 now 01S00]
    
  2. or download this
    sub get_connection {
        my ($DSN, $DBServer, $DBUser, $PW) = @_;
        my $dbh = DBI->connect("dbi:ODBC:Driver={SQL Server};Server=${DBSe
    +rver};DSN=${DSN};UID=${DBUser};PWD=${PW};KeepAlive=1");
        return $dbh;
    }