How to prevent a database from being restored?

Posted by André on Server Fault See other posts from Server Fault or by André
Published on 2010-05-19T16:52:13Z Indexed on 2010/05/19 17:02 UTC
Read the original article Hit count: 217

Is there a way to prevent a database from being restored with a DDL trigger or something?

The background is that I would like to prevent restoring a database on a test server by a colleague. So far I had a look a DDL trigger but didn't find the right event to react on the restore action.

© Server Fault or respective owner

Related posts about sql-server-2005

Related posts about sql-server-2008