top of page

Script to Remove Replication SQL Server

--Set deadlock priority to high to make sure the script is not stopped due to deadlock

SET DEADLOCK_PRIORITY HIGH

--<numeric-priority> ::= { -10 | -9 | -8 | ... | 0 | ... | 8 | 9 | 10 }

go

sp_removedbreplication @dbname = 'db_name', @type = 'Tran'

--Note: @Type='Tran' is for transactional replication.



 
 
 

Recent Posts

See All
SQL Server Profiler Trace

--Import multiple trace file in sql Table. --All the rollover files will be automatically imported --provide number tracefile to capture...

 
 
 

Comentários


bottom of page