Sql Server Query Error -order By Clause Is Invalid In Views
I am running the below code. When I run this code, I get error message: The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table
Solution 1:
If you are using
SQL Server 2012or later version, useOffset 0 RowsafterOrder By:
SELECT Id,
Name
FROMTableORDERBY Id
OFFSET0ROWSHope this helps.
Post a Comment for "Sql Server Query Error -order By Clause Is Invalid In Views"