Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a field from a SQL
Message
De
04/03/2008 21:47:04
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01298743
Message ID:
01298751
Vues:
17
>You can use dynamic sql
>
>SET @sql = 'ALTER TABLE DROP CONSTRAINT ' + @Whatever
>EXECUTE (@sql)
>
What I mean is that I am executing a SQL against the INFORMATION_SCHEMA.KEY_USAGE object. It extracts the constraint column name of the table I am passing in the WHERE clause. So, once the SQL is executed, how can I use that field? The field name in the SQL is Constraint_Name.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform