Connection is busy with results for another command
Hi
Has any one had this error? I have a program that updates a SQL database. It works fine, until I converted it to run as a Service, and now it periodically aborts with:- "Connection is busy with results for another command"
There seems to be no Rhyme or Reason to when it aborts - sometimes it will work for an hour or two other times it will abort after a few minutes.
Any help would be welcome.
Si
Re: Connection is busy ... command (same warning, diffrnt problem, poss solution?!?)
Hey guys,
I've been having the same error message while trying to execute Update and Insert stored procedures through my app...
OK, it's a VB6 app sitting on top of a SQL Server 2000 db, so strictly not one for the .NET forum, but the thread title matches exactly... :)
the actual error is:
Run-time Error -2147467259 (80004005):
“Connection is busy with results for another command”
I'm using ADO and both Command and Recordset objects to update, insert and retrieve. Don't appear to be any problems with retrieving, but updates and inserts are throwing this (but strangely not all of them....).
I've ensured that there's only one connection to the database and that this is never busy (always in ready state before executing) but to no avail.
The commands themselves work fine when run directly through Query Analyser.
The weird thing is, when I declare and instantiate a new connection to the database, there's no error at all!! So it seems to be only to do with the one Connection object.
The chap i sit next to has his apps coded in the same style and has never seen this problem at all - i even went so far as to get my app looking as identical to his as possible in all code lines affected, but no joy...
Any ideas on why, how, what, etc etc
Many thanks