Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Operation is not Allowed when object is closed

Author  Topic 

PankajBhasin
Starting Member

1 Post

Posted - 2001-06-29 : 15:19:24
We run some stored procs, some of them are all fine but a few of them when executed in a loop would somehow not result for no reason. See following
declare @lngVal integer
Select @lngVal = 1
while @lngVal <100000
begin
print "hi"
Exec -----
end

The problem SPs will have on average one in 200 execution return nothing, so I would see following output in query analyser.
hi
hi
Fron end system recieves this as no error and when we try to fetch ADO recordset it gives error "Operation is not Allowed when object is closed.". This is documented in ADO but in our case is comming because of this sql issue.

   

- Advertisement -