BUG: Query with Joins, Aggregate, Concatenation May Cause AV (229747)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q229747
BUG #: 55349 (SQLBUG_70)
SYMPTOMS
An access violation (AV) may occur when executing a query that:
- Contains a nested loops join that scans a table (that is, a naive nested loops join).
- Contains a correlated self-join subquery that computes an aggregate.
- Contains a GROUP BY clause containing a concatenated column.
- Uses the same concatenated column as a join condition for the self-join subquery.
WORKAROUND
To work around this problem, do either of the following:
- Create indexes that can be used by the nested loops join.
-or- - Compare single columns instead of concatenated columns.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBug kbpending KB229747 |
---|
|