Is there any way to go back and determine what order a trigger has been set to (first, none or last)? I've scanned through all of the system tables and don't see anything.
Thanks in advance.
With some digging, you can find that they encode the order into the status fields on sysobjects. However, the way they are exposed is with the ObjectProperty() function -- it takes parameters such as ExecIsFirstUpdateTrigger.
It is not obvious to me how triggers are exposed from the Information_Schema views.
The digging involves using sp_helptext on the sp_settriggerorder and sp_helptrigger stored procedures.
|||That's exactly what I was looking for.I didn't even think abou tusing sp_helptext to see what the procedure did. I'll definitely use that next time I want to know what SQL is doing.
Thanks!
No comments:
Post a Comment