Skip to Content.
Sympa Menu

freetds - Re: [freetds] Problems Connecting Debian --> MSSQL through odbc

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: jklowden AT schemamania.org
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Problems Connecting Debian --> MSSQL through odbc
  • Date: Thu, 16 Jul 2009 10:40:41 -0400

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




Archive powered by MHonArc 2.6.24.

Top of Page