Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do var substitution?
Message
De
01/02/2001 10:43:44
 
 
À
01/02/2001 09:06:39
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00470308
Message ID:
00471255
Vues:
42
>I think the problem I need to resolve is to figure out how to programatically "use {dbname}". If there is a way to do this, then I could put everything back into one SP.

TSQL does not allow parameterization of the USE statement. You cannot use Dynamic SQL because the database will only be changed for that batch. Thus my idea to change the database and call a system stored procedure.

-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