BUG: 8623 Error with INSERT-SELECT when Nullable Clustered Keys not Referenced

ID: Q235401


The information in this article applies to:

BUG #: 55906 (SQLBUG_70)

SYMPTOMS

Running an INSERT SELECT statement into a table that has a clustered index, in which all fields allow NULLs, may fail with the following error message:

Server: Msg 8623, Level 16, State 2, Line 5 Internal Query Processor Error: The query processor could not produce a query plan.
This error only occurs if all of the following conditions are met:


CAUSE

When generating the plan for the sort with a single thread, the optimizer code does not expect NULL values for all of the fields to be sorted.


WORKAROUND

To workaround this issue, choose any of the following options:


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 7.0.

Additional query words:


Keywords          : kbSQLServ700bug 
Version           : winnt:7.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: June 23, 1999