What are the maximum number of Columns in ORDER BY statement in SQL Server – SQLSERVERLEARNER https://sqlserverlearner.com LEARN SQL SERVER ONLINE Mon, 16 Apr 2012 13:00:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 What are the maximum number of Columns in ORDER BY clause in SQL Server? https://sqlserverlearner.com/2012/04/16/what-are-the-maximum-number-of-columns-in-order-by-clause-in-sql-server/ https://sqlserverlearner.com/2012/04/16/what-are-the-maximum-number-of-columns-in-order-by-clause-in-sql-server/#respond Mon, 16 Apr 2012 13:00:00 +0000 https://sqlserverlearner.azurewebsites.net/2012/04/16/what-are-the-maximum-number-of-columns-in-order-by-clause-in-sql-server/ table.hovertable {
font-family: verdana,arial,sans-serif;
font-size:11px;
color:#333333;
border-width: 1px;
border-color: #999999;
border-collapse: collapse;
}
table.hovertable th {
background-color:#c3dde0;
border-width: 1px;
padding: 8px;
border-style: solid;
border-color: #a9c6c9;
}
table.hovertable tr {
background-color:#d4e3e5;
}
table.hovertable td {
border-width: 1px;
padding: 8px;
border-style: solid;
border-color: #a9c6c9;
}

What are the maximum number of Columns in ORDER BY clause in SQL Server?
The maximum number of Columns in ORDER BY clause are Limited only by number of bytes.

Below link gives details regarding maximum bytes per ORDER BY Clause.
What are the maximum Bytes per ORDER BY in SQL Server?

Max Capacity For SQL Server 2012 SQL Server 2008 R2 SQL Server 2008 SQL Server 2005
maximum number of Columns in ORDER BY clause in SQL Server Limited only by number of bytes. Limited only by number of bytes. Limited only by number of bytes. Limited only by number of bytes.

http://msdn.microsoft.com/en-us/library/ms143432.aspx

]]>
https://sqlserverlearner.com/2012/04/16/what-are-the-maximum-number-of-columns-in-order-by-clause-in-sql-server/feed/ 0