hhhh2010

博客园 首页 新随笔 联系 订阅 管理

  原文地址:http://blog.csdn.net/wangjunhe/article/details/7211974

      

--利用getdate
declare @beginTime datetime declare @endTime datetime set @beginTime = getdate() select * from dbo.DatabaseLog set @endTime = getDate() select datediff(ms, @beginTime, @endTime) as MS GO

  

--利用Statistics
set statistics time on select * from dbo.DatabaseLog set statistics time off

  

 

posted on 2016-05-05 23:23  hhhh2010  阅读(458)  评论(0编辑  收藏  举报