Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: SQL-server cursors


Message #1 by "Neethling, Dirk BYNI/PLM" <Dirk.Neethling2@h...> on Mon, 30 Oct 2000 02:01:19 +0100
Hi,

I'm using server-side cursors in sp's. Like:



CREATE PROCEDURE _vortrieb_DEFAULT

@front		varchar(200)

AS

DECLARE forwardcursor_vortrieb SCROLL CURSOR

FOR

SELECT vortrieb_ID,

vortrieb_vortriebsfront,vortrieb_datum,vortrieb_vortriebsfenster,vortrieb_Au

sbruchsklasse,vortrieb_Ausbaufestl,vortrieb_Vortrieb,vortrieb_VortriebParsed

,vortrieb_convVortrieb,vortrieb_vortriebToDate,vortrieb_IstLeistung,vortrieb

_kumMonatsStand,vortrieb_sollLeistung,vortrieb_VortriebVortag,vortrieb_angle

X,vortrieb_angleY,vortrieb_angleZ

FROM vortrieb

WHERE vortrieb.vortrieb_vortriebsfront=@front 

ORDER BY vortrieb.vortrieb_datum DESC



OPEN forwardcursor_vortrieb 

FETCH LAST FROM forwardcursor_vortrieb

GO



What are the multi-user implications, will "forwardcursor" be available to

everyone? Should I therefore create a uniqie name for the server-side cursor

and pass this a variable when calling the sp?



dirk


  Return to Index