您的位置:首页 > 其它

怎么在企业管理器中得到执行一个select语句的毫秒级时间

2011-03-10 22:25 288 查看
方法一:

declare @d datetime

set @d=getdate()

select * from authors where au_fname='dirk'

select 执行时间=datediff(ms,@d,getdate())

方法二:

set statistics time on

select * from authors where au_fname='dirk'

set statistics time off





内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐