Help for this page

Select Code to Download


  1. or download this
    
    use DBI;                                                     
    ...
                                                                          
    +  
    my $dbh = DBI->connect($data_source, $username, $auth) 
    or die "no connection: $DBI::errstr";
    
  2. or download this
      
    [tbone@MDB tbone]$ ~/bin/db-connect.pl 
    DBI connect('database=SynergyOne;server=MSSQL','sa',...) failed:  at /
    +home/tbone/bi\
    ...
    Message String: ct_connect(): user api layer: internal Client Library 
    +error: A connection to the server must exist on the connection struct
    +ure before this routine can
     be called. 
    [tbone@MDB tbone]$