Script to Remove Replication SQL Server
- Kunal Ranpura
- Jan 12, 2020
- 1 min read
--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.
Comentários