Hi
I have generated a create script from an existing merge publication, changed the publication name, and try to add a new publication based on the old one. The generated script uses @publication_compatibility_level = N'100RTM'.
When I run this script I get:
Msg 21527, Level 16, State 1, Procedure sp_addmergepublication, Line 255
Publication '[publication]' cannot be added to database '[database]', because a publication with a lower compatibility level already exists. All merge publications in a database must have the same compatibility level.
Are there any other settings/tables I could check to make sure no replication with compatibility level 2005 exists for my database?
Hopefully this could be fixed without delete and recreate the publications.
* I assume publications for other databases on the same server does not influence the required compatibility level.
* The server is a SQL Server 2008 R2 (10.50.1600)
* The database was created for 2005, compatibility level changed is changed from 2005 to 2008
* One snapshot publication exists.
* One merge replication exists, created when database was 2005, compatibility level is now changed from 2005 to 2008
* The server contains multiple databases, with multiple compatibility levels
* The server contains publications for other databases with compatibility level 2005.
select @@VERSION
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )
exec sp_helpmergepublication @publisher_db = 'database'
Returns the one existing merge publication, and reports bacward_comp_level = 100
exec sp_changemergepublication @publication = @publication, @property = N'publication_compatibility_level', @force_invalidate_snapshot = 1, @value = N'100RTM'
Runs successfully for existing publication
exec sp_addmergepublication @publication = N'publication', ... @publication_compatibility_level = N'100RTM', ...
Returns error for new publication
best regards
Johannes