laika222
6/19/2017 - 8:05 PM

SET STATISTICS IO.sql

-- turns on statistics in the Messages tab in SQL Server Management Studio, allowing you to see how many reads the query completes. This allows you to see the efficiency of a particular query. Logical reads is the number you want to look for.
SET STATISTICS IO ON;

-- you can also select the Include Actual Execution Plan button (Ctrl + M) to add another tab for Execution Plan, which gives you information as to how the query is completed by the engine.