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

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

1,在Select语句前加:

declare @startSec datetime

set @startSec=getdate()

2,在Select语句后加:

select spendSec=datediff(ms,@startSec,getdate())
原文地址:https://www.cnblogs.com/amadeuslee/p/3744423.html