SQL-DBA-01 (4/10/2015)
HI Lowell,Please suggest how to capture DML operation here.
Thanks
Sourav
there is no DML in a DDL trigger...but there is a command text.
if you mean command from the DDL trigger that is being called, it's in the xml.
go back to my trigger example and find this line:
@otext=@eventData.value('data(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]',
you can then use it elsewhere, since it's in a variable.
Lowell