PRB: Reformatting Used in Stored Procedure with Temporary TableID: Q189394
|
The SQL Server optimizer may choose to use a reformatting strategy for a
join when in fact it is faster to use a nonclustered index. This can occur
if all of the following conditions are true:
To work around this problem, try any of the following:
The SQL Server optimizer chooses the nonclustered index for the join when
it is run from a batch because the number of rows in the temporary table is
known when the join query is optimized.
Additional query words: performance slow non clustered non-clustered
Keywords : SSrvStProc SSrvTran_SQL
Version : WINNT:6.5
Platform : winnt
Issue type : kbprb
Last Reviewed: April 19, 1999