Help for this page

Select Code to Download


  1. or download this
    use strict;
    use DBI;
    ...
    my $dbh = DBI->connect("dbi:ODBC:$DSN", $user, $password) || die "Coul
    +dn't open database: $DBI::errstr\n";
    
    $dbh->disconnect();
    
  2. or download this
    DBI connect(' ') failed: [Microsoft][ODBC SQL Server Driver][SQL Serve
    +r]Login failed for user 'company\lsxo'. (SQL-28000) at c:/TEMP/connec
    +t2.pl line 14