Chapter 9: Microsoft SQL Server Replicate Data Server Issues
Internal commit control
Replication Server uses the rs_dsi_check_thread_lock function
to check whether the current DSI executor thread is blocking another
replicate database process. For example:
select count(*) 'seq' from master..sysprocesses where blocked = @@spid