Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining result set form SP using cursors
Message
De
27/06/2002 17:19:22
 
 
À
27/06/2002 16:39:45
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00671813
Message ID:
00673092
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform