Re: Freetds connection problem

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Franck Y wrote:
> >> net.c:836:tds7_get_instance_port(192.168.10.50, SL)
> >> net.c:905:tds7_get_instance_port: timed out on try 0 of 16
...
> >> net.c:905:tds7_get_instance_port: timed out on try 15 of 16
> >> net.c:974:instance port is 0
> >> login.c:418:invalid port number
> >
> > Mmm... possibly there is no SL instance...
> >
> > freddy77
> 
> Oh how can i see the port number of the instance ?

The tds7_get_instance_port dialog, above, shows FreeTDS interrogating the
server for the port associated with the "SL" instance.  There is no NACK
("what are you talking about") kind of reply in the protocol for this kind
of request; the server simply ignores invalid requests.  

If you are sure 192.168.10.50 is the right address, are you sure "SL" is
the right instance name?  When you log in via Microsoft's tool, what does 
	
	select @@servername

return?

http://support.microsoft.com/kb/313225

<quote>
To find the SQL Server instance port number, follow these steps:

1.  On the Microsoft SQL Server 2000 server, start the SQL Server Network
Utility.
2.  Click the General tab, and then click the instance you want from the
Instances drop-down menu.
3.  Click TCP/IP, and then click Properties. 

Note that the port number for this instance appears in the Properties
dialog box.
</quote>

You should be able to telnet to the port.  

HTH.  

--jkl
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.