SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 problem in removing a constraint in a table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

212 Posts

Posted - 10/04/2006 :  01:35:42  Show Profile  Visit rammohan's Homepage  Send rammohan an AOL message  Reply with Quote
hi friends,
for my application i created a table which has a primary key column named num. this table contains this columns only.now i want to remove the column num. when i am tring to remove this column it is throwing the error:
"The object 'PK__Table_Null__023D5A04' is dependent on column 'num'."
so pls guide me on how to delete a primary key column from table.

thanx in advance,

In (Som, Ni, Yak)

17684 Posts

Posted - 10/04/2006 :  01:36:47  Show Profile  Reply with Quote
DROP the constraint first before dropping the column num


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000