Advertisement

02.18.2006 at 05:32PM PST, ID: 21742469
[x]
Attachment Details

Delete statement conflicted with COLUMN REFERENCE constraint

Asked by mel150 in MS SQL Server

Tags: reference, conflicted, statement, delete, constraint

If I run this query on my database:
DELETE from products
WHERE id='30'
 
I get this error:
Delete statement conflicted with COLUMN REFERENCE constraint 'FK_product_g_prudu_OF582957'. The conflict occurred in database 'A4989_dev", table 'product_group_member', column 'product_id'.
 
 So somehow it's conflicting with the table product_group_member. I thought it was because there was no product_id 30 in that table, but using a number that appears in that table also doesn't work.  I get the same error if I try the query from another source, so I know it's not my SQL client in this case. Has anyone seen this before? Thanks!
Start Free Trial
[+][-]02.18.2006 at 06:00PM PST, ID: 15992200

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: reference, conflicted, statement, delete, constraint
Sign Up Now!
Solution Provided By: BriCrowe
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.18.2006 at 06:27PM PST, ID: 15992334

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32