Microsoft Knowledge Base Email Alertz

Error message when you try to use a merge publication that you created in SQL Server 2005: Precomputed partitions cannot be used

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 914780 - Last Review: April 18, 2006 - Revision: 2.4

Error message when you try to use a merge publication that you created in SQL Server 2005: "Precomputed partitions cannot be used"

BUG #: 408626 (SQLBUDT)

On This Page

SYMPTOMS

When you try to use a merge publication that you created in Microsoft SQL Server 2005, you may receive one of the following error messages:
Error message 1
Precomputed partitions cannot be used because articles "%s" and "%s" are part of a join filter and at least one of them has a constraint with a CASCADE action defined.
Error message 2
The logical record relationship between articles "%s" and "%s" cannot be added because at least one of the articles has a constraint with a CASCADE action defined.
This problem occurs when the following conditions are true:
  • The Precompute partitions setting of the merge publication is set to True.
  • The merge publication contains an article that is based on a table that is specified to use cascading referential integrity constraints.
  • The merge publication contains join filters for the article.

CAUSE

This problem occurs because precomputed partitions cannot be used for a table that is specified to use cascading referential integrity constraints.

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089  (http://kbalertz.com/Feedback.aspx?kbNumber=913089/ ) How to obtain the latest service pack for SQL Server 2005

WORKAROUND

To work around this problem, set the Precompute partitions setting to False. Alternatively, rewrite the referential integrity constraints by not using cascading referential integrity.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft SQL Server 2005 Service Pack 1.

REFERENCES

For more information, see the following topics in SQL Server Books Online:
  • Optimizing parameterized filter performance with precomputed partitions
  • How to optimize parameterized row filters (SQL Server Management Studio)
  • Cascading referential integrity constraints

APPLIES TO
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Developer Edition
Keywords: 
kbsql2005sp1fix kbsql2005presp1fix kbexpertiseadvanced kbtshoot kbsql2005repl kbprb KB914780
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate