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

后端 未结 8 1520
花落未央
花落未央 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 08:02

    I don't know about expanding the information bar.

    But you can get the timings set as a default for all queries showing in the "Messages" tab.

    When in a Query window, go to the Query Menu item, select "query options" then select "advanced" in the "Execution" group and check the "set statistics time" / "set statistics IO" check boxes. These values will then show up in the messages area for each query without having to remember to put in the set stats on and off.

    You could also use Shift + Alt + S to enable client statistics at any time

    0 讨论(0)
  • 2020-12-07 08:04

    I was struggling with that until i found this...

    http://blog.sqlauthority.com/2009/10/01/sql-server-sql-server-management-studio-and-client-statistics/

    Also, if you open the Properties window you may find some magical "Connection elapsed time" that may give you some execution time... Hope it helps...

    0 讨论(0)
提交回复
热议问题