How will you see logical reads for a query when executing it.
-
SET XMLSTATS IO ON
-
SET STATISTICS TIME ON
-
SET STATISTICS I/O ON
-
SET STATISTICS IO ON
D
Correct answer
Explanation
Executing SET STATISTICS IO ON in SQL Server displays information about disk activity, including logical reads, physical reads, and read-ahead reads generated by statements. The command SET STATISTICS TIME ON displays CPU and elapsed time, while SET STATISTICS I/O ON containing a slash is syntactically invalid.