41396
Product Name Event ID 41396 Event Source MSSQLSERVER Component SQLEngine Symbolic Name MAX_SORT_ROWS_EXCEEDED Message Text The
Product
Name
Event ID
41396
Event Source
MSSQLSERVER
Component
SQLEngine
Symbolic
Name
MAX_SORT_ROWS_EXCEEDED
Message Text
The sort operation exceeded the buffer limit. The stored procedure execution was
aborted. Consult SQL Server Books Online for more information.
Natively compiled stored procedures perform sort operations in memory. There is a limit on
the size of the sort buffer. This error means that the size of the sort buffer exceeds this limit.
The sort operation and the stored procedure execution aborted.
The size of each row or entry in the sort buffer is determined by the number of rows sorted as
well as the number of joins and the number and type of aggregate functions in the query. By
simplifying the query, you can reduce the size of each row thereby fitting more rows in the sort
buffer. The size of the rows in the base tables does not affect the size of each row or entry in
the sort buffer.
Select fewer rows or decrease the complexity of the query by removing joins or aggregate
functions.
ノ
Expand table