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

jklowden at schemamania.org jklowden at schemamania.org
Fri Jul 17 10:35:56 EDT 2009


On Fri, Jul 17, 2009 at 01:28:55PM +0200, Jaap van Arragon wrote:
> 
> If you want me to test more OSQL functionality I gladly want to help!

Thanks, Jaap.  I would really like that.  

Writing portable shell scripts is hard (for me, at least!) and I can't test on every OS.  When you showed me the awk output, the meaning of it was both clear and seemingly impossible.  Yet Steve recognized it immediately, and sure enough that was it: you're using mawk.  

My first instinct was to say, "Here's a nickle, kid, get yourself a decent awk."  But that's not the right answer unless my job is to rid the world of broken utilities, which it's not.  So, without further ado, I committed a new osql that works around the problem.  (There was only one use of awk that relied on a regular expression passed to -F, so it was an easy fix.)  

http://freetds.cvs.sourceforge.net/viewvc/*checkout*/freetds/freetds/src/apps/osql?revision=1.11

Kindly download revision 1.11 and let me know what you see.  You can just run it normally (without sh -x).  Since you have a working setup now, the messages should report that your setup is OK and connect you to the server.  

Regards, 

--jkl



More information about the FreeTDS mailing list