Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to drop a field with index in SQL?
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Desktop
Divers
Thread ID:
01517683
Message ID:
01517716
Vues:
33
>What I meant to say was is that we do use primary keys in all tables, but we don't mark them as PK constraint in the SQL Server database. I was wondering what gain there is to have that constraint.

If there is a primary key, then the constraint is created. It always better to explicily name constraints because otherwise it will be system generated and it's a bit hard to find it out.

Script the table's creation in SSMS and this you will be able to find the name of the constraint.
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