Search
 
SCRIPT & CODE EXAMPLE
 

SQL

disable database droping sql

CREATE OR ALTER TRIGGER TRG_PreventDropProductionDB ON ALL SERVER
FOR DROP_DATABASE
AS
BEGIN
    IF DB_NAME() = 'ProductionDatabase'
        BEGIN
            RAISERROR('You cannot drop the production database.', 16,1);
            ROLLBACK;
        END
END
GO
Comment

PREVIOUS NEXT
Code Example
Sql :: find max number in sql 
Sql :: tables in sql 
Sql :: sql server express 
Sql :: apex for oracle 11g 
Sql :: how to modify alter user root@localhost identified with mysql_native_password by properly 
Sql :: grant sql 
Sql :: sqlalchemy query join many to many 
Sql :: sqlalchemy filter by relationship 
Sql :: connect laravel to mysql on mac 
Sql :: sum function in sql 
Sql :: search from comma separated values in sql server 
Sql :: mysql --version 
Sql :: equi join in sql 
Sql :: import database from sql file 
Sql :: Sql Text or Varchar 
Sql :: test connection to sql server 
Sql :: like postgres 
Sql :: how to use sqlcommand 
Sql :: How to drop table in mysql ? 
Sql :: Oracle Procedure ex2 
Sql :: SQL Server dynamic pivot unknown number of columns 
Sql :: grant privileges mysql to database 1064 
Sql :: how to list all values of a column that start with a letter in sql 
Sql :: mysqlimport: Error: 4166 
Sql :: from UCSC MySQL database Use database hg38. 
Sql :: select * from mysql.proc 
Sql :: open database restricted mode oracle 
Sql :: Is there a way to use read_sql_query and the query has WHERE column = Variable? 
Sql :: SELECT multiple from database 
Sql :: oracle apex run 404 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =