Hi all,
When we use trigger in SQL Server ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DOTNET DeveloperPosted Mar 14, 2012, 10:06 AM
Triggers are used when you need to execute a certain action as a result of an INSERT, UPDATE or DELETE. Data
manipulation code should be executed using stored procedures. One such similar situation where I used trigger is:
When the value of Column A is updated in Table A which is placed in say database X, you need to update the value
of Column B in Table B which is placed in database Y.