BUG: Create Procedure May Cause Error 1203 (156661)



The information in this article applies to:

  • Microsoft SQL Server 6.5

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.


Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbBug kbnetwork KB156661