Knowledge Base

BUG: Create Procedure May Cause Error 1203

Article ID: 156661

Article Last Modified on 10/3/2003


APPLIES TO


This article was previously published under Q156661
BUG #: 15933

SYMPTOMS

If you create a stored procedure, you may receive an error 1203, and the client's connection may be terminated. This problem may occur if both of the following are true:
  • The stored procedure contains a create table command.

    -and-
  • The stored procedure contains a query that violates ANSI rules on SELECT lists when DISTINCT and ORDER BY are used.

WORKAROUND

Correct the query so that it does not violate ANSI rules.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: group 145

Keywords: kbbug kbnetwork KB156661