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

后端 未结 8 1541
花落未央
花落未央 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:40

    You can try this code:

    USE AdventureWorks2012;
    GO
    SET STATISTICS TIME ON;
    GO
    SELECT ProductID, StartDate, EndDate, StandardCost 
    FROM Production.ProductCostHistory
    WHERE StandardCost < 500.00;
    GO
    SET STATISTICS TIME OFF;
    GO
    

提交回复
热议问题