Interviews5 answers
Can we have trigger on DDL statements?
5 Answers
yes
Gajendra JangidPosted Jan 29, 2018, 1:40 AM EST
Yes
Mukesh KumarPosted Sep 2, 2017, 3:27 AM EDT
yes we can use
Shalu ShaliniPosted Mar 31, 2017, 10:32 PM EDT
Yes we can have triggers for DDL statements
Create TRIGGER [SchemaChange_DDL]
ON ALL SERVER
FOR CREATE_TABLE, ALTER_TABLE, DROP_TABLE
As
Begin
--Your code
End
Vimal LohaniPosted Feb 15, 2017, 10:02 PM EST
Yes we can have triggers on both DML and DDL statements. These trigger are called as DDL triggers.
Rahul ChavanPosted Apr 7, 2016, 6:22 PM EDT




