Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining result set form SP using cursors
Message
From
27/06/2002 17:19:22
 
 
To
27/06/2002 16:39:45
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00671813
Message ID:
00673092
Views:
30
SQL Server 7.0 doesn't have table variables. You'll have to use temp. tables.

Basically, create a temp table that has the same structure as your result set but with an addition column that is an IDENTITY column. Insert your results into the temp table and then select from the temp table

rowid BETWEEN start AND stop

where rowid is the IDENTITY column. I was really surprised at the performance.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform