Writing a generic trigger for all operations (Update, Insert, Delete).
How can I tell what type of operation against the table has occurred.
I want one, generic I/U/D trigger that needs slightly different behavior for each operation.
Basically, I am writing an 'audit trail' trigger and need to...
I want to create a generic trigger that KNOWS what table it is built against. I took a guess the @@tablename might be a system variable and hoped the following code would work:
declare @tblname as char(50)
select @tblname = @@tablename
It did not.
ANY CLUES.
Again I want to write a generic...
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.