开发方面
T-sql开发方面, 新增xml数据类型还有XQuery的意义,ms比较强调, 我还不是很懂; 新增varchar(max)\nvarchar(max)
建立index可以用include 子句,增强索引效率
支持CLR;
新增排序函数RANK、DENSE_RANK 和 NTILE ROW_NUMBER()函数,不用再用临时表生成序列号了, 例如book online上的例子,给SalesOrderHeader中的记录按订单日期和订单ID排序,并取出其中从编号50到60的记录
WITH OrderedOrders AS
(SELECT SalesOrderID, OrderDate,
ROW_NUMBER() OVER (order by OrderDate,SalesOrderID)as RowNumber
FROM Sales.SalesOrderHeader )
SELECT *
,RANK() over (order by OrderDate) as rankNo
,DENSE_RANK() over (order by OrderDate) as Dense_rankNo
,NTILE(3) over (order by OrderDate) as ntileNo
FROM OrderedOrders
WHERE RowNumber between 50 and 60