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
 eroor after deleting column

Author  Topic 

soni321
Starting Member

8 Posts

Posted - 2011-04-21 : 17:27:00
sir i delete column after that the following message comes what is the meaning of this message:
Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'PK_orders'. Cannot insert duplicate key in object 'dbo.orders'.
The statement has been terminated.

Bhupinder Dhatt

reddymrk
Starting Member

6 Posts

Posted - 2011-04-21 : 17:42:46
The data you deleted from the table is associated with another table, using primay and foreign key relationship, thats the reason its thowing an error.
Go to Top of Page
   

- Advertisement -