【Vegas原创】获取SQL Server处理语句的时间(毫秒)

其实是很傻瓜的方法~~大家都会~~

1,在Select语句前加:

declare @startSec datetime

set @startSec=getdate()

 

2,在Select语句后加:

select spendSec=datediff(ms,@startSec,getdate())

 

posted @ 2008-12-04 11:25  中国的Amadeus  阅读(162)  评论(0)    收藏  举报