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: