Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
WoodHouse
Posting Yak Master
211 Posts |
Posted - 2010-04-23 : 14:56:02
|
| I need to ensure that tables are not dropped from our databaseWhat should i do in following things..a. create DDL trigger contains COMMITb. create DML trigger contains COMMITc. create DDL trigger contains ROLLBACKd. create DML trigger contains ROLLBACKHelp me out this question.ThanksWood. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
WoodHouse
Posting Yak Master
211 Posts |
Posted - 2010-04-23 : 15:02:49
|
| HI TkizerThanks a Lot |
 |
|
|
ms65g
Constraint Violating Yak Guru
497 Posts |
Posted - 2010-04-23 : 15:09:58
|
| You can use this trigger:CREATE TRIGGER drop_tableON DATABASE FOR DROP_TABLEAS ROLLBACK; |
 |
|
|
|
|
|