Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a field from a SQL
Message
De
04/03/2008 22:18:37
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01298743
Message ID:
01298760
Vues:
19
>
>DECLARE @CONSTRAINT_NAME nvarchar(128)
>
>SELECT @CONSTRAINT_NAME = CONSTRAINT_NAME
>  FROM INFORMATION_SCHEMA.KEY_USAGE
>  WHERE ...
>
>DECLARE @sql varchar(4000)
>SET @sql = 'ALTER TABLE DROP CONSTRAINT ' + @CONSTRAINT_NAME
>EXECUTE (@sql)
>
Thanks, this works.
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