I need to ensure that tables are not dropped from my database. Should I..
Create DDL(or DML ?) trigger that contains COMMIT or create DDL (or DML ?) trigger that contains ROLLBACK ?
I need to ensure that tables are not dropped from my database. Should I..
Share
Assuming SQL Server there is an example of doing this in BOL
You would be better off removing permissions from anyone that might
DROPthe tables inappropriately however. DDL triggers are after triggers, not instead of triggers so a drop table statement might still cause problems even if eventually rolled back.