<< Click to Display Table of Contents >> RepairDatabase |
Attempts to recover the PDQ Inventory database from corruption by exporting it to SQL, then re-importing it into a new database file. The original database is backed up before any changes are made.
This command performs the following steps:
1.Prompts to close the console and stop the background service if either is running.
2.Creates a backup of the database (.repair.bak).
3.Exports the database to a .sql file using the SQLite .dump command.
4.Imports the SQL file into a new, clean database file.
5.Verifies the integrity of the repaired database.
6.Replaces the original database with the repaired copy.
7.Cleans up temporary repair files.
PDQInventory RepairDatabase
This command has no parameters.
PDQInventory RepairDatabase
NOTE: Use RepairDatabase only when PDQ Inventory is reporting database errors or failing to start. For routine maintenance, use OptimizeDatabase instead.
© 2026 PDQ.com Corporation. All rights reserved.
PDQ.com is a trademark of PDQ.com Corporation. All other product and company names are the property of their respective owners.
Help Version: 20.0.22.0