Re: dbsqlexec hangs..... bug or my fault somehow?

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Mon, 30 Dec 2013 04:54:11 +0100
Ditmar Van Belle <[email protected]> wrote:

> Turns out in fact, that the dbsqlexec statement never returns! And
> yes, this was also the case in the multithreaded version-- the daemon
> was able to continue most of its work but the table involved just
> remained locked at server level and the Insert never actually
> happened. Pretty nasty eh?
> 
> 
> What else can I say...? Ah well, this behaviour is observed with both
> NTwDBlib and DBLib (FreeTDS)... Anybody any bright ideas?

I recommend a TDSDUMP log.  You'll see the sequence of function calls
to the library and packets exchanged with the server. My guess is that
an error condition is being ignored, probably because results are
incompletely read, despite your efforts so far.  

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.