Hi,
I've created a server level DDL trigger which is supposed to log any security changes on the server. I've defined one of the columns as
@TSQLCommand = EVENTDATA().value('(/EVENT_INSTANCE/TSQLCommand)[1]','nvarchar(max)')
When I run a statement like this:
ALTER LOGIN test WITH PASSWORD = 'asdf';
My @TSQLCommand does not capture anything, while if I run any of these:
DROP LOGIN [test2]
DENY CONNECT SQL TO [test]
GRANT CONNECT SQL TO [test]
I get all of them captured in my log table.
Any ideas?
Thanks.