Knowledge Base

FIX: Syntax Error in SELECT List May Cause Handled AV

Article ID: 152615

Article Last Modified on 10/16/2003


APPLIES TO


This article was previously published under Q152615
BUG#: 15027 (6.0)

SYMPTOMS

The absence of a comma between columns in the SELECT list may cause a handled AV under some narrow circumstances.

CAUSE

The parser incorrectly perceives that an alias is intended. A reference to the object later in the SELECT query, usually in a GROUP BY or ORDER BY clause triggers the parser confusion.

WORKAROUND

Add the comma to the SELECT clause.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Additional query words: AV

Keywords: kbbug kbfix kbprogramming kbprb KB152615