Skip to Content.
Sympa Menu

freetds - Re: [freetds] freetds and windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] freetds and windows
  • Date: Sat, 9 Apr 2005 19:24:28 -0400

Brett <generica AT email.com> wrote:
>
> Hmm, you know what, I don't check, since all the code in the unittests
> doesn't either, and I didn't really know what to test for to ensure the
> connection was made.
>
> Is there an easy way to do this ?
>
> And where should the freedts.conf file be under windows. Perhaps it
> isn't finding it, and therefore not finding the right hostname to
> connect to.

To find out where FreeTDS is looking for freetds.conf, set TDSDUMPCONFIG.
To see if it's connecting to the right host, set TDSDUMP. Both variables
can be set to stdout if you're not sure where the log files are being
written.

--jkl

> On Sat, 9 Apr 2005, Brian Bruns wrote:
>
> > I'm not a windows guy but I can enlighten you on dbsqlsend(). It is
> > called from dbsqlexec() which your program is likely calling. Does
> > the call to dbopen() return with a valid handle?
> >
> > On Apr 8, 2005 11:57 PM, Brett <generica AT email.com> wrote:
> >>
> >> Hey,
> >>
> >> Once more, I've hit problems.
> >>
> >> Using dblib, I got the client program working perfectly. It could
> >talk to> the ms sql server, get the results back, and work as I'd
> >hoped.>
> >> The next plan was to compile it under windows, which I thought would
> >be> straightforward. We already had the system compiling under
> >windows, with> faked calls for the sql stuff, so it was just a case of
> >using the freetds> code, and linking it in with the windows libraries.
> >>
> >> I went into the win32 directory, used msvc to load the projects, and
> >> compiled dblib.lib and libTDS.lib ... compiled and linked those into
> >our> software ( also had to link shell32.lib, due to some unresolved
> >symbols )>
> >> Went to run it, and with the aid of printfs, found that it
> >initialised the> library fine, but at the following call, it just
> >terminates>
> >> erc = dbsqlsend(dbproc);
> >>
> >> and grepping through the win32 directory, I see no occurrance of this
> >> function.
> >>
> >> Can anyone please give me some assistance. This is rather urgent,
> >and> very frustrating
> >>
> >> thanks,
> >>
> >> / Brett
> >>
> >> _______________________________________________
> >> FreeTDS mailing list
> >> FreeTDS AT lists.ibiblio.org
> >> http://lists.ibiblio.org/mailman/listinfo/freetds
> >>
> > _______________________________________________
> > FreeTDS mailing list
> > FreeTDS AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/freetds
> >
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page