Help for this page

Select Code to Download


  1. or download this
    
     #my($driver) = "/usr/lib/libiodbc.so";
    
  2. or download this
     my($driver) = "ODBC";
    
  3. or download this
     my($driver) = "Proxy"
    
  4. or download this
     my($host)   = "<my IP address>";
     my($db)     = "myDb\@$host";
    ...
     my($dsn)    = "dbi:$driver:database=$db;port=$port" 
    
    my($dbh)  = DBI->connect("dbi:ODBC:$db;$port", "me", "mypassword") || 
    +die(DBI->errstr);
    
  5. or download this
    [dbi:ODBC:database=myDB@oag7.oag.local:1433]
    DBI connect('myDB@host;1433','me','myPassword') failed: [iODBC][Driver
    + Manager]Data source name not found and no default driver specified. 
    +Driver could not be loaded (SQL-IM002) at ./sqlTest.pl line 30
    [iODBC][Driver Manager]Data source name not found and no default drive
    +r specified. Driver could not be loaded (SQL-IM002) at ./sqlTest.pl l
    +ine 30.
    ";