The DELETE statement conflicted with the REFERENCE constraint

  • Hi there,

    I am getting the error 'The DELETE statement conflicted with the REFERENCE constraint' on trying to delete a record from one of my tables. I understand why I am getting this error message and I have set the on cascade delete for all relationships in the database.

    I have also set 'enforce foreign key constraint' to 'No' and still it won't let me delete the record.

    There is clearly something missing in my knowledge of how SQL Server 2005 works here, could someone enlighten me please?

  • Hi

    Are you sure you have set the On Delete cascade correctly everywhere its required.

    Are there any circular reference anywhere in this chain or any triggers.

    "Keep Trying"

  • Check if any trigger is getting fired. !!

    "More Green More Oxygen !! Plant a tree today"

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply