Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification if a primary key exists
Message
De
04/03/2008 15:01:35
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Verification if a primary key exists
Divers
Thread ID:
01298604
Message ID:
01298604
Vues:
63
I have some code that are removing a primary key from all my tables. However, if this primary key does not exist, this will stop the script once reached. I need to verify if the primary key exists first before attempting to remove it. I have this presently:
ALTER TABLE [MyTable] DROP CONSTRAINT Numero
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform