TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Add Unique Constraints to Existing Table
Karthikeyan Anbarasan
May 10, 2011
3.4
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Add Unique Constraints to Existing Table
This blog shows how to add UNIQUE constraint to the existing table.
Syntax:
Alter table tablename
Add contraint(ConstraintName)
Unique(ColumnName)
Example:
Alter table emptable
Add Constraint(Unq_emptable_empsalary)
Unique(empsalary)
SQL Server Transact Basic to Expert - Add Unique Constraints to Existing Table
Next Recommended Reading
SQL Server Transact Basic to Expert - Unique Constraints Query