OptimizeDatabase

Top  Previous  Next

Syntax

OptimizeDatabase [-Wait]

Description

Rebuilds the database by reorganizing the data and indexes.

Remarks

The database will get fragmented over time and an optimization should be done periodically in order to keep the database running at top performance.

An optimization works best when there are no other programs accessing the database.  The optimization will still work, but it may cause other processes to timeout waiting for it to complete.

Note  Running Optimize will stop the                Background Service           and close the  PDQ Inventory  console.

Parameters

-Wait

Causes the command to wait at the end for the user to press ENTER on the keyboard.

Examples

Display help for the                OptimizeDatabase           commmand.

Help OptimizeDatabase
Help -CommandName OptimizeDatabase