Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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
 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 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)

17689 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  
 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