How to benchmark a SQL Server Query?

后端 未结 3 657
迷失自我
迷失自我 2021-02-15 16:33

I\'d like to know the standard way to benchmark a SQL Sever Query, preferably I\'d like to know about the tools that come with SQL Server rather than 3rd Party tools.

3条回答
  •  时光取名叫无心
    2021-02-15 17:07

    +1 on the execution plan. From here you can see where all the time is being spent in your particular query. Eg. 85% of the time is spent table scanning a particular table, can you put an index on that table to improve it? etc etc.

提交回复
热议问题