sql server 2008 - non-integer constant in ORDER BY Clause
问题 Upgrade advisor says "Non-integer constants are not allowed in the ORDER BY clause in 90 or later compatibility mode". But, when I try the below statement in SQL Server 2008 , it works just fine. So, my questions is - What exactly is a non-integer constant? select POS_NO ,EMP_NO ,ORG_NAME ,EMP_LAST_NAME + ', ' + EMP_FIRST_NAME AS "Name" FROM dbo.MyEmpTable ORDER BY "Name" 回答1: Here is what the MSDN have to say about character constant that are in a sense the non-integer constant Character