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)
 Help with Cursor.

Author  Topic 

abarsami
Yak Posting Veteran

68 Posts

Posted - 2001-01-15 : 22:03:24
Help my recordcount = -1
Why ?

In my stored proc:

Set @TCursor = Cursor Static For
[my select statment]
Open @TCursor
Fetch Next From @TCursor Into
[variables]

while @@fetch_status = 0
BEGIN
Insert Into #temp (
[I insert values into the temp table]

Fetch Next From @TCursor Into
[variables]
END
Close @TCursor
DeAllocate @TCursor

My asp code: rs.CursorType = adOpenStatic

Any Ideas?
   

- Advertisement -