Search code examples
sql-server-2008-r2merge-replication

How to check if SQL Server 2008R2 merge pull subscription is set to reinitialize?


I am using RMO and some T-SQL to manage my subscriptions and have a need to know if a subscription has been set to reinitialize on next sync.


Solution

  • As far as I know, you can query the table sysmergesubscriptions on the server and check the column sentgen for your subscriber. If it is NULL, it has been marked for reinitialization.