Skip to Content.
Sympa Menu

freetds - Re: [freetds] Using freetds in Windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Andrew H. Wakefield" <a_wake AT earthlink.net>
  • To: jklowden AT schemamania.org
  • Cc: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Using freetds in Windows
  • Date: Fri, 08 Jan 2010 18:58:53 -0500

Thanks for the reply. I'm not sure I really followed your explanation --
but that is a reflection of my newness to freetds, no doubt. :)

Andy Wakefield
a_wake AT earthlink.net

On Fri, 2010-01-08 at 17:19 -0500, jklowden AT schemamania.org wrote:

> On Fri, Jan 08, 2010 at 01:19:01AM -0500, Andrew H. Wakefield wrote:
> > Still having problems with freetds 0.82 running under Windows ... here
> > is the latest symptom:
> >
> > Using tsql, I can connect to the SQL database if I specify the Host and
> > port directly. If I specify the Server name, *even though it is finding
> > the freetds.conf file and translating to the correct IP address and
> > port*, it errors out. Let me make it clear: According to the log file
> > generated with TDSDUMPCONFIG, it *IS* finding the freetds.conf file, and
> > according to the TDSDUMP log file, it *IS* translating to the right IP
> > address and port. But for some reason, it errors out.
>
> The reason isn't terribly clear, is it?
>
> I committed changes today to make the TDSDUMP log clearer for Win32
> failures. tsql doesn't work, but bsqsldb does. I'll try to fix tsql too.
> The updates should appear in the nightly snapshot.
>
>
> The primary problem is that Windows sockets only vaguely resemble the
> standard sockets they're based on. They don't set errno; they require a
> call to WSAGetLastError(). That returns a number, sure enough, but not one
> you can translate with strerror(3) or perror(3) or in fact any Win32
> function. I wrote tds_prwsaerror() just for that purpose.
>
> HTH.
>
> --jkl

Attachment: face-smile.png
Description: PNG image




Archive powered by MHonArc 2.6.24.

Top of Page