Reputation: 230
I am using SQL Server and have a issue with delete trigger, because it's fired when there are 0 rows affected(deleted) and i want that it's fire when one row is affected(deleted).
This happen because i am using CASCADE
Upvotes: 1
Views: 418
Reputation: 135809
As pointed out in the documentation:
triggers fire when any valid event is fired, regardless of whether or not any table rows are affected.
Laughing Vergil has given you the solution in his comment.
Upvotes: 3