Re: Attempt to initiate a new Adaptive Server operation with results pending

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4d4+QCauvbtZfin3S4XqaLmfW7FeZ5BECKrHQiZnsiB+g@mail.gmail.com>
2015-02-09 13:54 GMT+00:00 LacaK <[email protected]>:
> Hi,
> I have program which uses FreeTDS db-lib.dll
> Now I have changed TDS version from 7.1 to 7.3 and I start receiving
> "Attempt to initiate a new Adaptive Server operation with results pending"
> in some places.
>
> For example, when I send this two commands:
>   "IF @@TRANCOUNT>0 ROLLBACK"
> followed by:
>   "BEGIN TRANSACTION"
>
> I get above mentioned error.
>
> I attach portion of logs for 7.1 and 7.3 version.
>
> As you can see in both cases is returned : more_results = 1 after "IF
> @@TRANCOUNT>0 ROLLBACK"
> (I do not understand why?)
>
> But in case 7.3 is error raised afterward (in 7.1 no error) Is it expected ?
> Can you give me some explanation what is going on ?
>
> Thanks
> -Laco.
> P.S. I resend this email to maillist, because first does not arrive there
> after 3 days
>


Yes, was still on stalled for moderation. Mmm... looks like tds 7.3
send transaction id back and dblib does not handle it at terminator
tokens. Can you send a small test. Don't think should be hard to fix.

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