Select the product you need help with
FIX: Suboptimal Execution Plan on an Indirect UPDATE to an Indexed ViewArticle ID: 286234 - View products that this article applies to. This article was previously published under Q286234
BUG #: 236137 (SHILOH_BUGS)
SYMPTOMS
An update to a table underlying an indexed view may result in a suboptimal plan when the indexed view contains aggregate functions.
CAUSE
Incorrect row estimates result in an index scan instead of an index seek when calculating the aggregate information.
RESOLUTIONTo resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211
(http://support.microsoft.com/kb/290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
Avoid using aggregate functions in an indexed view.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1. MORE INFORMATION
Execute the following code to see the problem. Note that the "compute scalar" step is performing an index seek.
PropertiesArticle ID: 286234 - Last Review: October 16, 2003 - Revision: 3.2
|


Back to the top








