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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql server 2008 - Drop Primary Key

Author  Topic 

paramu
Posting Yak Master

151 Posts

Posted - 2011-06-18 : 07:21:40
I altered my table for Primary Key Like the following manner

alter table MyTable add primary key(mycolumn1)

And Now I wish to remove this field (MyColumn1)'s primary key property...

Thanks For The Ideas



Paramu @ PARANTHAMAN

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-06-18 : 08:06:13
alter table MyTable add primary key(mycolumn1)
looks not like SQL Server syntax.
What is it?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

paramu
Posting Yak Master

151 Posts

Posted - 2011-06-18 : 08:54:16
yah..I did wrong
Thanks For the comments

Paramu @ PARANTHAMAN
Go to Top of Page
   

- Advertisement -