Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
paramu
Posting Yak Master
151 Posts |
Posted - 2011-06-20 : 01:53:06
|
Hi,I have table MyAddress like the below..Door_no nvarchar(25)Street nvarchar(50)Road nvarchar(50)city nvarchar(50)state nvarchar(50)country nvarchar(50)Now I like to set this field Door_no to be Unique field.For that any ideas?Thanks for the helpsParamu @ PARANTHAMAN |
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2011-06-20 : 02:31:31
|
Making Door_no as UNIQUE is sensible? Different person have same door no in different street/city/state/country.Any way the synatx isALTER TABLE <table_name> ADD UNIQUE (column_name)Senthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceledhttp://senthilnagore.blogspot.com/ |
|
|
paramu
Posting Yak Master
151 Posts |
Posted - 2011-06-20 : 02:52:14
|
Hi Senthil Nagore,Thanks For The Comments!Paramu @ PARANTHAMAN |
|
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2011-06-20 : 02:58:39
|
quote: Originally posted by paramu Hi Senthil Nagore,Thanks For The Comments!Paramu @ PARANTHAMAN
WelcomeSenthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceledhttp://senthilnagore.blogspot.com/ |
|
|
|
|
|