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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Too Many Client Tasks

Status
Not open for further replies.

matttoby

Programmer
Mar 30, 2001
14
GB
I am attempting to open up one recordset and then loop through this recordset and create a new recordset on each loop through.

E.G.

SET RSouter = server.createobject("adodb.recordset")
SQL = "SELECT * FROM xxx WHERE xxx"
RSouter.open SQL,”DSN=xxx”

DO until Rsouter.EOF

SET RSinner = server.createobject("adodb.recordset")
SQL = "SELECT xxx FROM xxxx WHERE id = Rsouter("id")
RSinner.open SQL,"DSN=xxx"

<!--Modify RSinner-->

RSinner.close

RSouter.movenext

Loop
Rsouter.close

However I am receiving an error saying Too many client tasks. Any help would be much appreciated as I have come up against this problem a number of times.
 
Try setting RSinner to nothing after closing it.

BTW, it would be more efficient if you were to code this into one SQL statement (if possible).

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top