Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.48 KB

mssqlserver-41399-database-engine-error.md

File metadata and controls

35 lines (29 loc) · 1.48 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
MSSQLSERVER_41399
MSSQLSERVER_41399
MashaMSFT
mathoma
04/04/2017
sql
supportability
reference
41399 (Database Engine error)

MSSQLSERVER_41399

[!INCLUDE SQL Server]

Details

Attribute Value
Product Name [!INCLUDEssNoVersion]
Event ID 41399
Event Source MSSQLSERVER
Component SQLEngine
Symbolic Name MAX_SORT_ROW_WIDTH_EXCEEDED
Message Text The sort operation is too complex. Consult SQL Server Books Online for more information.

Explanation

Sorting the result of join and aggregation operations increases the complexity of the sort operation by increasing the size of the row in the sort buffer. This error means that the size of the row is larger than the maximum size supported by the sort operator in natively compiled stored procedures. Note that the size of a row in the sort buffer is determined solely by the number of joins and the number and type of aggregate functions. The size of the rows in the base tables does not affect the size of the row in the buffer.

User Action

Decrease the complexity of the query by removing joins or aggregate functions.

See Also

In-Memory OLTP (In-Memory Optimization)