https://www.cnblogs.com/xcsn/p/7773212.html
第三种使用方法:打开SQL SERVER 查询分析器,输入以下语句:
SET STATISTICS PROFILE ON SET STATISTICS IO ON SET STATISTICS TIME ON
GO
/*--你的SQL脚本开始*/
SELECT [TestCase] FROM [TestCaseSelect]
/*--你的SQL脚本结束*/
GO
SET STATISTICS PROFILE OFF SET STATISTICS IO OFF SET STATISTICS TIME OFF
效果如图
在消息窗口可见效果