Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable
Message
De
08/10/2008 00:35:13
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Variable
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01353548
Message ID:
01353548
Vues:
52
Is there a way to declare a public variable in SQL2005

I'm storing some formulas in a table to calculate provions, some of these formulas contains variables (i.e. @Var1, @var2, ...), I'm excuting these formulas in a stored procedure as follows

set @cmd='FormulaToExecute'
exec (@cmd)

System is generating an error against every variable used inm the formula expression (Must declare the scalar variable "@Var1")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform