Apply Microsoft SQL Server patches on a database that is being replicated.
For each existing Replication Agent for Microsoft SQL Server instance, verify that it is in Replicating state and allow replication to finish. To verify that replication has finished, quiesce the Replication Agent instance by issuing the quiesce command.
DISABLE TRIGGER ra_createtable_trig_ ON DATABASEwhere ra_createtable_trig_ is the name of the automark trigger created by Replication Agent.
"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe" -m -sserverName\instanceNamewhere instanceName is the name of the Microsoft SQL Server instance.
Log in to the Replication Agent instance:
isql -U username -P password -S instanceName
Reinitialize Microsoft SQL Server :
server_xlog remove, force go server_xlog init go
Restart Microsoft SQL Server in multiuser mode.
ENABLE TRIGGER ra_createtable_trig_ ON DATABASEwhere ra_createtable_trig_ is the name of the automark trigger created by Replication Agent.
ENABLE TRIGGER ra_ddl_trig_ ON DATABASEwhere ra_ddl_trig_ is the name of the DDL trigger created by Replication Agent.