Possible Duplicate:
I got error “The DELETE statement conflicted with the REFERENCE constraint”
I am receiving the error
The DELETE statement conflicted with the REFERENCE constraint fk
Is there away to automatically delete the row that is causing this reference conflict such as setting a property or such. To avoid first deleting the child and then going back and deleting the original row you wanted to delete?
When you create your table, specify ON DELETE CASCADE.
This sets up the delete action for the table to also delete referencing rows, if it is the parent.
See http://msdn.microsoft.com/en-us/library/ms174979.aspx.