Create a view with ORDER BY clause

前端 未结 9 1627
轻奢々
轻奢々 2020-11-30 04:42

I\'m trying to create a view with an ORDER BY clause. I have create it successfully on SQL Server 2012 SP1, but when I try to re-create it on SQL Server 2008 R2

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 05:20

    I've had success forcing the view to be ordered using

    SELECT TOP 9999999 ... ORDER BY something
    

    Unfortunately using SELECT TOP 100 PERCENT does not work due the issue here.

提交回复
热议问题