Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexing to avoid duplicates

Status
Not open for further replies.

chainedtodesk

Programmer
Feb 26, 2003
112
US
i have a few tables in SQL Server2008 that have been in use for a while, i am trying to create indexing on a serial number field to avoid duplicates, i know in access i can change the table field to index no duplicates, in the server do i use the indexes and keys option by right clicking the field and then changing the unique to yes?? will this do what i need or am i totally off base here. thanks
 
Changing the index to unique will do what you expect it to. Specifically, it will enforce your data to be unique.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
thank you George for verifying this for me, much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top