SQL Server Management Studio, how to get execution time down to milliseconds

后端 未结 8 1558
花落未央
花落未央 2020-12-07 07:08

When I submit a batch (e.g., perform a query) in SSMS, I see the time it took to execute in the status bar. Is it possible to configure SSMS to show the query time with mill

8条回答
  •  孤街浪徒
    2020-12-07 07:38

    What you want to do is this:

    set statistics time on
    
    -- your query
    
    set statistics time off
    

    That will have the output looking something like this in your Messages window:

    SQL Server Execution Times: CPU time = 6 ms, elapsed time = 6 ms.

提交回复
热议问题