Think about Loose Coupling | |
PerlMonks |
Re^3: Using DBD::ODBC and cygwin to connect to MS SQL?by Tommy (Chaplain) |
on Jul 14, 2016 at 13:53 UTC ( [id://1167781]=note: print w/replies, xml ) | Need Help?? |
OK, here's what worked for me, in 5 steps: Step 1: don't worry about /etc/odbc.ini -- you don't need to create or modify it to make your MS SQL connection work from cygwin. Step 2: you also don't need to worry about /etc/freetds/freetds.conf -- the defaults work out of the box Step 3: set up your /etc/odbcinist.ini file like so:
Step 4: write your Perl code like so (change as desired) #TMTOWTDI
Step 5: Profit! It turns out that this wasn't nearly as complicated as I initially was led to believe, and that's fine by me :-)
Tommy A mistake can be valuable or costly, depending on how faithfully you pursue correction
In Section
Seekers of Perl Wisdom
|
|