>>Script Language and Platform: SQL Server
The first step in preparing and maintaining an OLTP database for query and better performance is diagnosis. Maintaining statistics on a regular basis is important but a heavily updated database needs more emaphasis on Statistics.
The following script (stored procedure) is useful in getting the information on which tables were updated and how many rows were updated since the last stats update. The script also generates a script to run on the databases to update statistics for the tables which have out-of-date statistics.
Disclaimer: We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
"as -is", without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose...
Back to Database Journal Home