Question on cursors in store proc used by several process simultaneously

Question on cursors in store proc used by several process simultaneously

Post by darre » Thu, 10 Jun 1999 04:00:00



Dear All:
 Recently I met a problem on SQL server cursor. I want to know if there are
any problems for me to use cursor as the following mechanism: in a store
procedure I open a cursor,use it and close it after I finish using it. In
using the the cursor I will use "fetch next" to get next row. Then I judge


since there are several processes will call this store proc simultaneously,

Please help me to confirm the globle variable can be used in this scenario
or not.

 
 
 

Question on cursors in store proc used by several process simultaneously

Post by Tobias Thernstr? » Thu, 10 Jun 1999 04:00:00


It should not be a problem since the global var is bound to each
session. I.e Connection 1 using FETCH NEXT will not change

Hope this helps.
--
Tobias Thernstr?m
MCSE, MCT
Digitask Sweden AB


> Dear All:
>  Recently I met a problem on SQL server cursor. I want to know if there
are
> any problems for me to use cursor as the following mechanism: in a store
> procedure I open a cursor,use it and close it after I finish using it. In
> using the the cursor I will use "fetch next" to get next row. Then I judge


But
> since there are several processes will call this store proc
simultaneously,
> and in the store proc I analyze the value of the globle variable


> Please help me to confirm the globle variable can be used in this scenario
> or not.