DDL Triggers

  • I have been given the task of archiving the code of various database objects as they are being updated. Triggers were brought up as a vehicle to accomplish this.  For example, is there any way to catch the code of a stored proc before it is altered, using a trigger?  I have been able to successfully catch the code that is being updated, however I can't find a way to capture the code pre-update.  Thanks for your help.

  • If the trigger fires before the event then you can do an sp_rename on the original sproc.

    Just an idea, might not work.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply