How to delete data from Product table by ProductID in AdventureWorks

  • I want to create a procedure to delete Production.Product table by ProductID in AdvetureWorks Database.

    How to do it? Because Table Product's too many relationship 🙁

    Has anyone done this yet? Can provide me clear example to perform.

    THANKS!

  • I can think of 3 options:

    1. Delete data in all related tables first.

    2. Drop all relationships first.

    3. Change relationship rules for Delete (to Cascade, for example).

    --Vadim R.

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

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