Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to capture Execution Time in Batch?

Author  Topic 

vgr.raju
Yak Posting Veteran

95 Posts

Posted - 2008-02-12 : 18:37:58
Hi,
I am executing Multi-Batch of T-SQL Statement using SQLCMD.
Currently I am creating the Temporary Table and Inserting StartTime and End Time of the Batch and then calculating the Total Execution time of Batch..
Is there any better way to do it?..
I am not able to use the variables because their scope.
Thanks,
Raju

Thanks!
Raju
http://rajusqlblog.blogspot.com/
   

- Advertisement -