Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to drop a field with index in SQL?
Message
 
 
To
08/07/2011 12:23:40
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01517683
Message ID:
01517716
Views:
32
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform