I have 2 merge publications. On 1 publication I continously get the following error immediately after I successfully created the subscription and successfully downloaded and applied the snapshot.
This publication differs from the publication to which the subscription was initially created.
This is absolutely incorrect since I never changed the publication; all I did was run the agent one more time after the first syncronization of the snapshot. Sometimes the error does not occur but most times it does.
This never occurs on the other merge publication. Sometimes the error doesn't occur and other times it does. I have tried everything I know of to fix this but with no luck. I have deleted all the system replication tables and ran sp_mergesubscription_cleanup
on the subscriber to no avail. I have captured the log files.
David Ryan
The portion of the log where the error occurred.
2012-02-20 01:01:45.527 Microsoft SQL Server Merge Agent 10.50.2500.0
2012-02-20 01:01:45.529 Copyright (c) 2008 Microsoft Corporation
2012-02-20 01:01:45.530 Microsoft SQL Server Replication Agent: replmerg
2012-02-20 01:01:45.532
2012-02-20 01:01:45.534 The timestamps prepended to the output lines are expressed in terms of UTC time.
2012-02-20 01:01:45.535 User-specified agent parameter values:
-Publisher ZEUS
-PublisherDB ESDB
-Publication SQLMERGEPUB_ES_MER
-Subscriber MER-DEV-2
-SubscriberDB MERDB
-SubscriptionType 1
-SubscriberSecurityMode 1
-Distributor ZEUS
-Output C:\repllog\ES_MER.txt
-OutputVerboseLevel 2
-XJOBID 0x1B5DB8378B69EE49BA3F2E1B2DAE4140
-XJOBNAME ZEUS-ESDB-SQLMERGEPUB_ES_MER-MER-DEV-2-MERDB- 0
-XSTEPID 1
-XSUBSYSTEM Merge
-XSERVER MER-DEV-2
-XCMDLINE 0
-XCancelEventHandle 00000000000006F4
-XParentProcessHandle 00000000000005D8
2012-02-20 01:01:45.564 Percent Complete: 0
2012-02-20 01:01:45.565 Connecting to Subscriber 'MER-DEV-2'
2012-02-20 01:01:45.566 Connecting to OLE DB Subscriber at datasource: 'MER-DEV-2', location: '', catalog: 'MERDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:01:45.625 OLE DB Subscriber: MER-DEV-2
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: MERDB
user name: MER-DEV-2\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:01:45.629 OLE DB Subscriber 'MER-DEV-2': {call sp_MSgetversion }
2012-02-20 01:01:45.637 OLE DB Subscriber 'MER-DEV-2': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-02-20 01:01:45.646 OLE DB Subscriber 'MER-DEV-2': {?=call sp_helpsubscription_properties (N'ZEUS', N'ESDB', N'SQLMERGEPUB_ES_MER')}
2012-02-20 01:01:45.650 Distributor security mode: 1, login name: , password: ********.
2012-02-20 01:01:45.651 OLE DB Subscriber 'MER-DEV-2': {?=call sp_helpsubscription_properties (N'ZEUS', N'ESDB', N'SQLMERGEPUB_ES_MER')}
2012-02-20 01:01:45.655 Publisher security mode: 1, login name: , password: ********.
2012-02-20 01:01:45.657 Percent Complete: 0
2012-02-20 01:01:45.658 Connecting to Distributor 'ZEUS'
2012-02-20 01:01:45.659 Connecting to OLE DB Distributor at datasource: 'ZEUS', location: '', catalog: '', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:01:45.685 OLE DB Distributor: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name:
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:01:45.690 OLE DB Distributor 'ZEUS': {call sp_MSgetversion }
2012-02-20 01:01:45.694 OLE DB Distributor 'ZEUS': {call sp_helpdistpublisher (N'ZEUS') }
2012-02-20 01:01:45.698 OLE DB Distributor 'ZEUS': select datasource, srvid from master..sysservers where upper(srvname) = upper(N'ZEUS')
2012-02-20 01:01:45.699 OLE DB Distributor 'ZEUS': {call sp_MShelp_merge_agentid (0,N'ESDB',N'SQLMERGEPUB_ES_MER',null,N'MERDB',100,N'MER-DEV-2')}
2012-02-20 01:01:45.702 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.707 OLE DB Distributor 'ZEUS': {call sp_MShelp_profile (13, 4, N'')}
2012-02-20 01:01:45.710 Percent Complete: 0
2012-02-20 01:01:45.710 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.711 Initializing
2012-02-20 01:01:45.715 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.717 Connecting to OLE DB Publisher at datasource: 'ZEUS', location: '', catalog: 'ESDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:01:45.719 Percent Complete: 0
2012-02-20 01:01:45.720 Connecting to Publisher 'ZEUS'
2012-02-20 01:01:45.721 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.738 OLE DB Publisher: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: ESDB
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:01:45.743 OLE DB Publisher 'ZEUS': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-02-20 01:01:45.746 OLE DB Publisher 'ZEUS': {call sp_MSgetversion }
2012-02-20 01:01:45.751 Connecting to OLE DB Publisher at datasource: 'ZEUS', location: '', catalog: 'ESDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:01:45.773 OLE DB Publisher: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: ESDB
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:01:45.785 This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription
and recreate it for the new publication.
2012-02-20 01:01:45.787 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.794 Percent Complete: 0
2012-02-20 01:01:45.794 This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription
and recreate it for the new publication.
2012-02-20 01:01:45.795 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:01:45.808 Percent Complete: 0
2012-02-20 01:01:45.809 Category:NULL
Source: Merge Process
Number: -2147199389
Message: This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription and recreate
it for the new publication.
2012-02-20 01:01:45.810 Disconnecting from OLE DB Subscriber 'MER-DEV-2'
2012-02-20 01:01:45.811 Disconnecting from OLE DB Subscriber 'MER-DEV-2'
2012-02-20 01:01:45.812 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:01:45.813 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:01:45.814 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:01:45.816 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:01:45.818 Disconnecting from OLE DB Distributor 'ZEUS'
2012-02-20 01:01:45.821 Disconnecting from OLE DB Distributor 'ZEUS'
2012-02-20 01:04:40.620 Microsoft SQL Server Merge Agent 10.50.2500.0
2012-02-20 01:04:40.623 Copyright (c) 2008 Microsoft Corporation
2012-02-20 01:04:40.624 Microsoft SQL Server Replication Agent: replmerg
2012-02-20 01:04:40.625
2012-02-20 01:04:40.626 The timestamps prepended to the output lines are expressed in terms of UTC time.
2012-02-20 01:04:40.627 User-specified agent parameter values:
-Publisher ZEUS
-PublisherDB ESDB
-Publication SQLMERGEPUB_ES_MER
-Subscriber MER-DEV-2
-SubscriberDB MERDB
-SubscriptionType 1
-SubscriberSecurityMode 1
-Distributor ZEUS
-Output C:\repllog\ES_MER.txt
-OutputVerboseLevel 2
-XJOBID 0x1B5DB8378B69EE49BA3F2E1B2DAE4140
-XJOBNAME ZEUS-ESDB-SQLMERGEPUB_ES_MER-MER-DEV-2-MERDB- 0
-XSTEPID 1
-XSUBSYSTEM Merge
-XSERVER MER-DEV-2
-XCMDLINE 0
-XCancelEventHandle 00000000000006F4
-XParentProcessHandle 00000000000005D8
2012-02-20 01:04:40.657 Percent Complete: 0
2012-02-20 01:04:40.658 Connecting to Subscriber 'MER-DEV-2'
2012-02-20 01:04:40.659 Connecting to OLE DB Subscriber at datasource: 'MER-DEV-2', location: '', catalog: 'MERDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:04:40.721 OLE DB Subscriber: MER-DEV-2
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: MERDB
user name: MER-DEV-2\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:04:40.737 OLE DB Subscriber 'MER-DEV-2': {call sp_MSgetversion }
2012-02-20 01:04:40.745 OLE DB Subscriber 'MER-DEV-2': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-02-20 01:04:40.755 OLE DB Subscriber 'MER-DEV-2': {?=call sp_helpsubscription_properties (N'ZEUS', N'ESDB', N'SQLMERGEPUB_ES_MER')}
2012-02-20 01:04:40.759 Distributor security mode: 1, login name: , password: ********.
2012-02-20 01:04:40.760 OLE DB Subscriber 'MER-DEV-2': {?=call sp_helpsubscription_properties (N'ZEUS', N'ESDB', N'SQLMERGEPUB_ES_MER')}
2012-02-20 01:04:40.764 Publisher security mode: 1, login name: , password: ********.
2012-02-20 01:04:40.766 Percent Complete: 0
2012-02-20 01:04:40.767 Connecting to Distributor 'ZEUS'
2012-02-20 01:04:40.768 Connecting to OLE DB Distributor at datasource: 'ZEUS', location: '', catalog: '', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:04:40.791 OLE DB Distributor: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name:
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:04:40.796 OLE DB Distributor 'ZEUS': {call sp_MSgetversion }
2012-02-20 01:04:40.799 OLE DB Distributor 'ZEUS': {call sp_helpdistpublisher (N'ZEUS') }
2012-02-20 01:04:40.804 OLE DB Distributor 'ZEUS': select datasource, srvid from master..sysservers where upper(srvname) = upper(N'ZEUS')
2012-02-20 01:04:40.806 OLE DB Distributor 'ZEUS': {call sp_MShelp_merge_agentid (0,N'ESDB',N'SQLMERGEPUB_ES_MER',null,N'MERDB',100,N'MER-DEV-2')}
2012-02-20 01:04:40.809 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.813 OLE DB Distributor 'ZEUS': {call sp_MShelp_profile (13, 4, N'')}
2012-02-20 01:04:40.816 Percent Complete: 0
2012-02-20 01:04:40.817 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.817 Initializing
2012-02-20 01:04:40.820 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.823 Connecting to OLE DB Publisher at datasource: 'ZEUS', location: '', catalog: 'ESDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:04:40.824 Percent Complete: 0
2012-02-20 01:04:40.825 Connecting to Publisher 'ZEUS'
2012-02-20 01:04:40.826 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.846 OLE DB Publisher: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: ESDB
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:04:40.851 OLE DB Publisher 'ZEUS': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-02-20 01:04:40.854 OLE DB Publisher 'ZEUS': {call sp_MSgetversion }
2012-02-20 01:04:40.860 Connecting to OLE DB Publisher at datasource: 'ZEUS', location: '', catalog: 'ESDB', providerstring: '' using provider 'SQLNCLI10'
2012-02-20 01:04:40.880 OLE DB Publisher: ZEUS
DBMS: Microsoft SQL Server
Version: 10.50.2500
catalog name: ESDB
user name: ZEUS\mer_mergeagent
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len:
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-02-20 01:04:40.890 This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription
and recreate it for the new publication.
2012-02-20 01:04:40.893 OLE DB Subscriber 'MER-DEV-2': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.899 Percent Complete: 0
2012-02-20 01:04:40.900 This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription
and recreate it for the new publication.
2012-02-20 01:04:40.900 OLE DB Distributor 'ZEUS': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-02-20 01:04:40.912 Percent Complete: 0
2012-02-20 01:04:40.913 Category:NULL
Source: Merge Process
Number: -2147199389
Message: This publication differs from the publication to which the subscription was initially created. The original publication may have been deleted and replaced with a new publication with the same name. At the subscriber, delete the subscription and recreate
it for the new publication.
2012-02-20 01:04:40.914 Disconnecting from OLE DB Subscriber 'MER-DEV-2'
2012-02-20 01:04:40.915 Disconnecting from OLE DB Subscriber 'MER-DEV-2'
2012-02-20 01:04:40.916 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:04:40.917 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:04:40.918 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:04:40.920 Disconnecting from OLE DB Publisher 'ZEUS'
2012-02-20 01:04:40.921 Disconnecting from OLE DB Distributor 'ZEUS'
2012-02-20 01:04:40.923 Disconnecting from OLE DB Distributor 'ZEUS'