Re: osql error

Lee Hughes <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
JKL-

Thanks for the tip. I did as you instructed and installed osql from the
latest snapshot. This got me much further with troubleshooting, very nice
tool.

I now have tsql, isql, and OpenOffice successfully connecting to my SQL
Server. But I cannot connect with osql or ruby-odbc which is my end goal.

osql fails with

"Server" found, not using freetds.conf
Server is "192.168.1.101"
looking up hostname for ip address 192.168.1.101
osql: warning: no DNS hostname found for "192.168.1.101"

I have an entry in /etc/hosts for this IP address so I'm not sure why it's
failing or how to correct that.

When I try to connect from ruby-odbc (ODBC.connect('MY_DSN')) with tracing
enabled, the following errors appear in the trace file:

                DIAG [01000] [FreeTDS][SQL Server]Adaptive Server connection
failed

                DIAG [S1000] [FreeTDS][SQL Server]Unable to connect to data
source

Thanks for any light you can shed on these errors.

Lee

On Tue, Apr 13, 2010 at 5:11 PM, Lee Hughes <[email protected]> wrote:

> Just installed FreeTDS with unixODBC on a vanilla Ubuntu 9.10 machine.
>
> tsql works fine.
>
> osql does not -- /usr/local/freetds/bin/osql -S <servername from
> freetds.conf> -U username -P password gives:
>
> osql: error: no potential directory strings in "/usr/local/bin/isql"
> isql strings are:
> + /lib/ld-linux.so.2
>
> Any help greatly appreciated!
> --
> Lee
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.