[freetds] Problems Connecting Debian --> MSSQL through odbc
jklowden at schemamania.org
jklowden at schemamania.org
Thu Jul 16 10:40:41 EDT 2009
On Thu, Jul 16, 2009 at 04:03:23PM +0200, Jaap van Arragon wrote:
> SERVER:~# awk -W version
> mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
>
> compiled limits:
> max NF 32767
> sprintf buffer 1020
>
> What can I do? Everything seems to be right but it and working....;-(
Hi Jaap,
Well, from my perspective there are two problems: A) osql is broken (because mawk is), and B) your ODBC setup isn't working.
Regarding (B), let's follow Frediano's suggestion:
$ TDSDUMPCONFIG=stderr TDSDUMP=stderr \
isql -v svr usr pwd
Let's see what that reports. I still think your DM is reading an odbc.ini other than the one you're modifying.
Regarding (A), let's try Steve's suggestion. In the osql script, find the only line that uses awk with that form of regular expression:
awk -F '[[:space:]]*=[[:space:]]*' '{print $2}')
replace it with
awk -F '=' '{print $2}' | sed 's/[[:space:]][[:space:]]*//g')
I committed revision 1.11 with that change. You can download it from CVS.
One of those two things should tell us something.
Regards,
--jkl
More information about the FreeTDS
mailing list