[freetds] libtds - setting tds version and port number
Jon Foster
jon at jfpossibilities.com
Mon Aug 30 17:58:58 EDT 2004
Ed-
I'm no expert and just learning the Library myself. However I have two
suggestions:
1) Try a server string like "192.168.0.1:1433". It works for me.
2) There is a function dbsetversion(). I believe it is used to set the
protocol version.
Chow!
On Mon, 2004-08-30 at 13:39, Ed Freeberg wrote:
> When I execute this program, I get:
>
> [ed at neo sqltest]# ./sql
> src/tds/login.c: tds_connect: 192.168.0.1:4000: Connection refused
> Unable to connect to 192.168.0.1
>
> So, obviously it's confused about which protocol and port it's supposed
> to be using (it's supposed to speak 4.2 to port 1433/tcp).
>
--
Jon Foster
JF Possibilites, LLC
jon at jfpossibilities.com
541-410-2760
Making computers work for you!
More information about the FreeTDS
mailing list