DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2622668 - Last Review: April 12, 2012 - Revision: 2.0

On This Page

Microsoft distributes Microsoft SQL Server 2008 R2 Service Pack 1 (SP1) or Microsoft SQL Server 2012 fixes in one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security updates that were included with the previous SQL Server 2008 R2 Service Pack 1 (SP1) or SQL Server 2012 update release.

SYMPTOMS

Consider the following scenario:
  • You create a merge replication publisher in Microsoft SQL Server 2008 R2 or in Microsoft SQL Server 2012.
  • An article on the publisher refers to a table.
    Notes
    • The table's schema name is not [dbo].
    • The table contains a foreign key that has the ON DELETE CASCADE option enabled.
  • You try to delete some records from the table on the publisher.

In this scenario, you might receive the following error message:
Msg 208, Level 16, State 1, Procedure MSmerge_del_3A3112E39F334F1CB109F89DE513DF6E, Line 75
Invalid object name 'Child.MSmerge_<publishing database name>_<table name>_PARTITION_VIEW'.

Note This issue also occurs in Microsoft SQL Server 2005 and Microsoft SQL Server 2008.

CAUSE

This issue occurs because an incorrect schema name for the partition view is created during a system procedure that is used to partition groups during the merge replication process.

RESOLUTION


Cumulative update information


SQL Server 2012

The fix for this issue was first released in Cumulative Update 1 for SQL Server 2012. For more information about this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
2679368  (http://support.microsoft.com/kb/2679368/LN/ ) Cumulative update package 1 for SQL Server 2012
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release. Microsoft recommends that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2692828  (http://support.microsoft.com/kb/2692828/LN/ ) The SQL Server 2012 builds that were released after SQL Server 2012 was released
You must apply a SQL Server 2012 hotfix to an installation of SQL Server 2012.

Cumulative update package 4 for SQL Server 2008 R2 SP1


The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 SP1, click the following article number to view the article in the Microsoft Knowledge Base:
2633146  (http://support.microsoft.com/kb/2633146/ ) Cumulative update package 4 for SQL Server 2008 R2 SP1
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 SP1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2567616  (http://support.microsoft.com/kb/2567616/ ) The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 SP1 was released

WORKAROUND

To work around this issue, try one of the following methods:
  • Do not enable the ON DELETE CASCADE option for the foreign key.
  • Set the @use_partition_groups argument of the sp_addmergepublication procedure to false.
  • Use [dbo] as the schema name of the table.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2012 Enterprise
Keywords: 
kbqfe kbfix kbexpertiseadvanced kbsurveynew KB2622668
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support