Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $dbh = DBI->connect("dbi:ODBC:$CONNECT", "$dbuser", "$dbpassword")
      or die "Cannot connect to $CONNECT: $DBI::errstr\n";
    $dbh->disconnect
    
  2. or download this
    C:\>test_1.pl
    DBI connect('Driver={MAS 90 4.0 ODBC Driver}','user',...) failed: [Mic
    +rosoft][ODBC Driver Manager] Data source name not found and no defaul
    +t driver specified (SQL-IM002) at C:\test_1.pl line 11.
    Cannot connect to Driver={MAS 90 4.0 ODBC Driver}: [Microsoft][ODBC Dr
    +iver Manager] Data source name not found and no default driver specif
    +ied (SQL-IM002)