Help for this page

Select Code to Download


  1. or download this
    # Driver from the FreeTDS package
    # Setup from the unixODBC package
    ...
    Driver      = /usr/lib/cygtdsodbc.dll
    Setup       = /usr/lib/cygtdsodbc.dll
    FileUsage   = 1
    
  2. or download this
    my $dsn = 'dbi:ODBC:DRIVER={FreeTDS};';
    $dsn .= 'SERVER=DB.EXAMPLE.COM;database=NorthWind;';
    ...
      LongTruncOk => 1, # don't die when we grab really long data :/
      odbc_utf8_on => 1, # utf8 all data. We'll need to decode everything
    });