Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indirect Reference to Field Names?
Message
 
 
À
03/10/2012 10:59:34
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01554212
Message ID:
01554215
Vues:
34
>Hey all
>
>I know in VFP I can refer to a field name via a variable name as MyTable..&VarField.
>
>Is it possible to do something similar in SQL?
>
>thanks

In SQL Server you will need to use dynamic SQL - construct the command as a string and execute it using

execute sp_executesql @SQL

stored procedure passing parameters if needed.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform