Constraint....On Delete, On Update.

  • Hey all-

    Getting ready to try my hand at really using constraints. Anyone reason why I should not set the On Delete and the On Update to Cascade? This option just makes sense in my book...if I delete an instance in one table, it should get rid of them all. I could see setting these to No Action if you want to create a history of some type. Just a little nervous when it comes to the "delete" word.

    Thanks,

    Doug

  • PK to FK constraints are handle quite well with cascade but you should make sure to test the effects for you setup before you put in production.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

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

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