sql-serverdatabase-designforeign-keysrdbmscascade

When/Why to use Cascading in SQL Server?


When setting up foreign keys in SQL Server, under what circumstances should you have it cascade on delete or update, and what is the reasoning behind it?

This probably applies to other databases as well.

I'm looking most of all for concrete examples of each scenario, preferably from someone who has used them successfully.


Solution

  • Summary of what I've seen so far:

    Cascade Delete

    Cascade Update

    When To Use Cascading