SQL - Analyze Database

 

The ANALYZE DATABASE command performs a table performance analysis operation on the currently connected database. The number of records in the entire database affects the amount of time this operation requires.

Example usage in a BBj program:

SQLOPEN(sqlchan)"MyDatabase"
SQLPREP(sqlchan)"ANALYZE DATABASE"
SQLEXEC(sqlchan)

See SQL - Analyze Table for information on how to analyze a single table at a time.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.