Debugging SQL Server in the project is a convenient way to view the execution time of SQL statements

Method 1: Return the steps taken when executing each statement as a rowset, displayed in the form of a hierarchical tree

set statistics profile on
set statistics io on
set statistics time on
go
-- where to write SQL statements
SELECT * FROM [dbo].[DT_CVPrice]


go
set statistics profile off
set statistics io off
set statistics time off

The second method: use the tools that come with Sql Server

Location: Tools > Options > Query Execution > Advanced


The effect picture is as follows:


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324818839&siteId=291194637