declare @startproc datetime declare @endproc datetime declare @time integer select @startproc = getdate() exec (my strored name) select @endproc = getdate() select @time = DATEDIFF(second, @startproc, @endproc) print str(@time)
@StartTime
@EndTime
SET STATISTICS TIME
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)