SQL Server provides the ability to update statistics in a database. Update statistics will cause SQL Server to evaluate the current state of the database and store statistics about how many rows are stored in each table. This helps SQL Server determine which indexes to use when retrieving data from the tables.
Updating statistics frequently (you may choose to update statistics at the same time as your database backups), can help improve performance in the CSE. You should not take down the database or CSE software to run statistics for SQL Server. You may want to update statistics daily.
Follow these steps:
If you do not have estats.sql, then type in the following commands manually:
update statistics DASC
update statistics DCKOHIST
update statistics DCKOID
update statistics DENCY
update statistics DGRPUS
update statistics DMAX
update statistics DMDL
update statistics DMDLUS
update statistics DNAME
update statistics DOBJ
update statistics DSUBDF
update statistics DSUBEX
update statistics DSUBID
update statistics DSUBUS
update statistics DTXT
update statistics DUSR
update statistics SASC
update statistics SDIV
update statistics SOBJ
update statistics SPRP
update statistics STRG
update statistics DXCPID
This executes all the previous commands against your <DBCSE> database. Output can be viewed in the Results window. The update statistics commands have completed successfully when the following message is displayed on the Results window:
This command did not return data, and it did not return any rows.
Follow these steps:
update statistics DIRLOGON
update statistics DIRUSER
update statistics DIRENCY
update statistics DIRXCPID
This executes all the previous commands against your <DBDIR> database. Output can be viewed in the Results window. The update statistics commands have completed successfully when the following message is displayed on the Results window:
This command did not return data, and it did not return any rows.
|
Copyright © 2013 CA.
All rights reserved.
|
|