xoxomos
asked on
Trigger T-SQL
I'd like the t-sql that would make a trigger which would,whenever a change in permissions or indexes was made to a table or view, it would populate a table(logtable) with getdate(), the id making the change , generate sql script of the original and the new in directory called original and new.
If the points seem stingy, that can be negotiated.
If the points seem stingy, that can be negotiated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Forgot to mention, i'm on 6.5
ASKER
Forgot to mention, i'm on 6.5
ASKER
Installed a trial version of 7.0 . Don't understand quite i'm seeing just yet, but that looks what i could use IF i had 7.0.
What i use to version scripts, is that I generate scripts manually (using the Scripting Wizard), even if I could use SQL-DMO...
Thinking about this, you could add a trigger to master database tables: syscolumns, sysobjects, sysindexes ...
Sounds like a challenge ...