Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create stored procedures
Message
De
30/03/2000 08:21:21
 
 
À
29/03/2000 15:43:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00352359
Message ID:
00352637
Vues:
17
You might try using the Execute() command and dynamic SQL but if you can call the outer stored procedure (The one that you want to pass parameters to) then why not just submit the CREATE PROCEDURE command.

Using Dynamic SQL would look like this:

DECLARE @cmd varchar(2000)

SET @cmd = 'CREATE PROCEDURE HelloWorld AS ' +
'SELECT ''Hello World'''

EXECUTE( @cmd )

-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