ondelete cascade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramsai8
    New Member
    • Aug 2007
    • 2

    #1

    ondelete cascade

    HI,

    i struck with a problem when i was deleting arow from database which is having

    primary key in one table and that one is also having foureign key in second table

    the error is like this

    DELETE statement conflicted with TABLE REFERENCE constraint 'FK_DAUse_Clien ts'. The conflict occurred in database 'SIIP', table 'DAUseHistory'.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Please show us both statements. Thanks.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Have you tried the CASCADE DOWN command in your delete statement?
      (Or is it CASCADE up? I can never remember, they're dangerous)

      Comment

      Working...