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

What is 1nf normalization form?

745


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

802


Write an sql query to find first weekday of the month?

666


How to set a database state to offline in ms sql server?

716


How to generate create function script on an existing function?

782






What is forward - only cursors / read only cursor?

724


Can you explain different types of locks in sql server?

711


How to turn on the mssql api module in php?

759


Write a SQL command to insert and update only a particular field?

803


How to get a list of columns in a view using the "sp_columns" stored procedure?

795


What are the advantages of sql azure?

134


Which tools are available to manage SQL Azure databases and servers?

107


What is a view in sql?

758


What is indexing and its types?

726


How to bind a view to the schema of the underlying tables?

756