How to Display, Amount of Disk Activity Generated by
Transact-SQL Statements?

Answer Posted / guest

You can set SQL Server to display information regarding the
amount of disk activity generated by T-SQL statements. This
option displays the number of scans, the number of logical
reads (pages accessed), and the number of physical reads
(disk accesses) for each table referenced in the statement.
This option also displays the number of pages written for
each statement. When STATISTICS IO is ON, statistical
information is displayed. When OFF, the information is not
displayed. After this option is set ON, all subsequent T-
SQL statements return the statistical information until the
option is set to OFF.
Here is the syntax:

SET STATISTICS IO {ON | OFF}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you size a resultset?

494


What is the purpose of the tempdb database?

564


What is the difference between join and inner join?

529


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

3741


How to find which stored procedure is currently running in sql server?

484






What is meant by indexing files?

569


Where is localdb stored?

547


ow to bring suspect mode datbase online from scratch

1395


What is the difference between Stored Procedures and triggers?

565


Which command is used for user defined error messages?

552


What are the different sql server versions?

505


What is an inner join?

523


Explain linked server in sql?

686


What are the characteristics of modern DBMS?

615


What is the difference between web edition and business edition?

87