SET STATISTICS PROFILE ON SET STATISTICS IO ON SET STATISTICS TIME ON GO /*--SQL脚本开始*/ SELECT * FROM dbo.Table GO /*--SQL脚本结束*/ SET STATISTICS PROFILE OFF SET STATISTICS IO OFF SET STATISTICS TIME OFF
在数据库中分析sql执行性能
原文:http://www.cnblogs.com/mtsl/p/4232476.html