It depends on what you are doing with the trigger whether it is necessary or not. Some things can be handled with constraints on the field. Also using cascade update and cascade delete can allow you to avoid some triggers. Creating a calculated field can also help avoid some triggers. ANd yes you could put all the business rules in an sp but this is often not a good idea as it doesn't account for anyone who changes the data in some other fashion. And if another sp is written for a particular special case then it will also need that business rule code and sooner or later someone will forget it and then you lose your data integrity.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.