Primary Key:
1. Combination of NOT NULL and UNIQUE, So, It will not allow Duplicate data and NULL.
2. It will be CLUSTERED Index by default, If the table doesn't have CLUSTERED Index already on that table. It will be NONCLUSTERED PRIMARY KEY, If the table already have CLUSTERED Index on that table.
3. Only one PRIMARY KEY can be defined on the table.
UNIQUE:
1. It allows only one NULL
2. It will create NONCLUSTERED Index, Even the table doesn''t have CLUSTERED Index already on that table.
3. Multiple UNIQUE can be defined on the table.
Note:
PRIMARY KEY or UNIQUE constraint can be referenced by a FOREIGN KEY constraint.
Cheers
www.sqlserverbuddy.blogspot.comCheers
www.SQLServerbuddy.blogspot.com
iLink Multitech Solutions
Senthilns2005, if this helps please login to Mark As Answer. | Alert Moderator