Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get var back from dynamic SQL
Message
De
07/01/2000 08:28:40
 
 
À
06/01/2000 10:56:19
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00313925
Message ID:
00314420
Vues:
45
Ken,

When you use Dynamic SQL, it is treated as a seperate batch. Variables and temporary tables are removed when the batch is completed.

You do have a couple of options though. You can follow Stephen's suggestion of calling a stored procedure or you can create the temporary table before calling the dynamic sql.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform