What are statistics, under what circumstances they go out
of date, how do you update them?

Answer Posted / swapna

Statistics determine the selectivity of the indexes. If an
indexed column has unique values then the selectivity of
that index is more, as opposed to an index with non-unique
values. Query optimizer uses these indexes in determining
whether to choose an index or not while executing a query.

Some situations under which you should update statistics:
1) If there is significant change in the key values in the
index
2) If a large amount of data in an indexed column has been
added, changed, or removed (that is, if the distribution of
key values has changed), or the table has been truncated
using the TRUNCATE TABLE statement and then repopulated
3) Database is upgraded from a previous version

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate sql server reporting services vs. Crystal reports?

150


Can you please differentiate between a primary key and a unique key?

522


 Explain what is sql override for a source taLle in a mapping?

563


What is 1nf 2nf?

539


What is the difference between NOROW and LOCKROW?

2221






How to download and install the scaled-down database adventureworkslt?

599


Tell me in brief how sql server enhances scalability of the database system?

513


What is join query?

491


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

544


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

562


Explain transaction server explicit transaction?

498


How to resolve the orphan use problem? : sql server security

517


What program is used to store the data source file?

497


What are relationships and mention different types of relationships in the dbms

547


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

746