freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist
- From: Krish <krishna.sunuwar AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist
- Date: Wed, 8 May 2013 10:35:17 +0545
Thanks HTH,
I got it worked by setting version = 7.0 on freetds.conf under [global]
Krish
On Wed, May 8, 2013 at 10:00 AM, James K. Lowden <jklowden AT freetds.org> wrote:
> On Tue, 7 May 2013 10:30:48 +0545
> Krish <krishna.sunuwar AT gmail.com> wrote:
>
>> The SQL Server is not in localhost, but it is in machine called
>> db_server. Access to db_server is restricted to mid_server. I created
>> tunnel with
>>
>> $ssh -L 1433:db_server:1433 user@mid_server
>>
>> The above port forwardign is working for Navicat. I can connect
>> localhost:1433 via Navicat and access all database in db_server. I
>> also can telnet localhost 1433. So main problem is freeTDS not working
>> port forwarding. Is there any way to get this work?
>>
>> and my config is:
>>
>> [sqlserv]
>> host = localhost
>> port = 1433
>> tds version = 7.0
>
> I don't know Navicat, but if that works, then FreeTDS should work,
> too. Probably just a small configuration error.
>
> Try:
>
> $ TDSVER=7.0 tsql -H localhost -p 1433
>
> That should work. If not, you'll have to get ssh to tell you what's
> going on. You could also try tracing the Linux system calls. FreeTDS
> just opens a TCP connection, nothing fancy, same as telnet.
>
> If the above command works and "tsql -S" does not, then FreeTDS is not
> looking at your freetds.conf file. To see why not, try:
>
> $ TDSDUMPCONFIG=dump tsql -S sqlserv
>
> and look at the "dump" file. Usually the output is clear enough to let
> the reader diagnose the problem.
>
> HTH.
>
> --jkl
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
--
Life is short where is time to hate eachother
http://www.krishnasunuwar.com.np
------------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by person or entity other than the intended recipient is
not permitted. If you received this in error, please contact the
sender and delete the material from any computer.
-
[freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
Krish, 05/06/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
Randy Syring, 05/06/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
James K. Lowden, 05/06/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
Krish, 05/07/2013
- Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist, Krish, 05/07/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
James K. Lowden, 05/08/2013
- Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist, Krish, 05/08/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
Krish, 05/07/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
James K. Lowden, 05/06/2013
-
Re: [freetds] Unable to connect: Adaptive Server is unavailable or does not exist,
Randy Syring, 05/06/2013
Archive powered by MHonArc 2.6.24.