Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection is busy with results for another hstmt

Status
Not open for further replies.

ersarg

Programmer
Feb 7, 2006
8
0
0
US
PB10 / SQL Server 2005 Standard. I'm trying to execute a embedded SQL statement INSERT INTO ..... and I get the error

"connection is busy with results for another hstmt"

The SQL that is erring is inside a Cursor Loop. I changed the SQL to a simple UPDATE of the same table no error. I changed to an INSERT INTO that was using a different table and the error returned. I have found many references and fixes in Google but most pertain to stored procedures and/or SLQ Server 2000.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top