Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Using DBD::ODBC and cygwin to connect to MS SQL?

by genio (Beadle)
on Jul 13, 2016 at 21:34 UTC ( [id://1167735]=note: print w/replies, xml ) Need Help??

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
    });
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found