Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a result from dynamically executed SQL
Message
De
24/03/2008 09:58:34
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Get a result from dynamically executed SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01304869
Message ID:
01304869
Vues:
55
Hi,

How to get a result of the following dynamic syntax:-
set @posted = 'post_'+ @MONTHNO
set @sql =('select '+@posted+' from mumonth where year ='+@ACTIVEYEAR)
set @poststatus = (@sql)
Best Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform