MySQL Forums
Forum List  »  Microsoft SQL Server

UNIQUE Constraints in Microsoft SQL Server
Posted by: merrcy merrcy
Date: November 07, 2009 03:37AM

UNIQUE Constraints in Microsoft SQL Server
UNIQUE constraints allow SQL Server administrators to specify that a column may not contain duplicate values. When you create a new UNIQUE constraint, SQL Server checks the column in question to determine whether it contains any duplicate values. If the table contains preexisting duplicates, the constraint creation command fails. Similarly, once you have a UNIQUE constraint on a column, attempts to add or modify data that would cause duplicates to exist also fail.

Buildings and Contents Insurance
Get Cash Online

Options: ReplyQuote


Subject
Written By
Posted
UNIQUE Constraints in Microsoft SQL Server
November 07, 2009 03:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.