Skip to Content.
Sympa Menu

freetds - RE: query on tsql to use hostname

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: query on tsql to use hostname
  • Date: Mon, 19 Aug 2002 09:56:45 -0400


> From: Abhilash_Shanmugham [mailto:Abhilash_Shanmugham AT Satyam.com]
> Sent: August 19, 2002 8:49 AM
>
> I have MS SQL 2000 running on my network
> and I have freetds installed in RedHat 7.2 System
> if I try
> [root@localhost bin]# ./tsql -Sccr3mcg109 -H172.18.57.40
> -p1433 -Usa -Pgnu
> I am able to connect and able to query
> well now if i try with the host name
>
> [root@localhost bin]# ./tsql -Sccr3mcg109 -Usa -Pgnu
> Unknown marker: 0!!
> There was a problem connecting to the server
>
> My entry in the /usr/local/freetds/
> [ccr3mcg109]
> host=172.18.57.40
> port = 1433
> tds version = 7.0
> try domain logins = no
> try server logins = yes
> nt domain = ccr
>
> I looked up the /tmp/freetds.log
>
> 2002-08-19 12:19:47 Connecting addr 172.18.57.40 port 1433
> 2002-08-19 12:19:47 inside tds_process_login_tokens()
> 2002-08-19 12:19:47 inside tds_process_default_tokens() marker is 0
>
> Can you tell me where I have made a mistake in the
> freetds.conf file entry .

Abhilash,

The good news is, tsql was designed for just this kind of diagnostic
purpose. The bad news is, I don't see anything wrong with your
FreeTDS.conf.

You might want to try TDSDUMPCONFIG, to make sure FreeTDS is reading the
file you think it is.

To be clear, the syntax should be either:

tsql -H172.18.57.40 -p1433 -Usa -Pgnu
or
tsql -Sccr3mcg109 -Usa -Pgnu

As Frediano points out, you really only need this in your freetds.conf to
describe your server:

> [ccr3mcg109]
> host=172.18.57.40
> port = 1433
> tds version = 7.0

The rest are esoterica whose defaults are fine for a normal login.

Since I don't have any real advice, I'll ask a few questions....

Does the situation change if you use a hostname instead of an address?

Are you using any FreeTDS environment variables? Does setting TDSVER=7.0
help?

For the record, what's the date of your snapshot?

What arguments did you pass to the configure script?

HTH.

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.






Archive powered by MHonArc 2.6.24.

Top of Page