Check SDB files for Integrity

If you have a Microsoft database (which is not Access obviously) and you have issues with your security database or more critically your Exchange database then you can check many parts of the database using the command "esentutl" which is a Microsoft database utility
If you run the command you get all the options as shown below:
c:>esentutl
Microsoft® Windows™ Database Utilities
Version 5.1
Copyright © Microsoft Corporation. All Rights Reserved.
DESCRIPTION: Maintenance utilities for Microsoft® Windows databases.
MODES OF OPERATION:
Defragmentation: ESENTUTL /d [options]
Recovery: ESENTUTL /r [options]
Integrity: ESENTUTL /g [options]
Repair: ESENTUTL /p [options]
Checksum: ESENTUTL /k [options]
File Dump: ESENTUTL /m[mode-modifier]
<<<>>>
D=Defragmentation, R=Recovery, G=inteGrity, K=checKsum, P=rePair, M=file duMp
Integrity Checking
If for example you want to check the security database for integrity you use these instructions:
1. Start a command prompt
2. Navigate to %windir%/security/database
3. Refer to the options above for the correct option
This example will check integrity on secedit.sdb
4. Enter the command

esentutl /g secedit.sdb

5. Wait for the analysis to complete, yes WAIT....
Microsoft® Windows® Database Utilities
Version 5.2
Copyright © Microsoft Corporation. All Rights Reserved.
Initiating INTEGRITY mode...
Database: secedit.sdb
Temp. Database: TEMPINTEG6552.EDB
Checking database integrity.
Scanning Status (% complete)
0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................
Integrity check successful.
Operation completed successfully in 0.500 seconds.
6. If you get no error then DO NOT follow step 7, this could corrupt the database
7. If you get any errors then you will need to run a repair with the command "esentutl /p "
Database Defragementation
1. Start a command prompt
2. Navigate to %windir%/security/database
3. Refer to the options above for the correct option
This example will check integrity on secedit.sdb
4. Enter the command

esentutl /d secedit.sdb

5. Wait for the analysis to complete...
Microsoft® Windows® Database Utilities
Version 5.2
Copyright © Microsoft Corporation. All Rights Reserved.
Initiating DEFRAGMENTATION mode...
Database: secedit.sdb
Temp. Database: TEMPDFRG9596.EDB
Defragmentation Status (% complete)

0 10 20 30 40 50 60 70 80 90 100
|----|----|----|----|----|----|----|----|----|----|
...................................................

Moving 'TEMPDFRG9596.EDB' to 'secedit.sdb'... DONE!
Note:
It is recommended that you immediately perform a full backup
of this database. If you restore a backup made before the
defragmentation, the database will be rolled back to the state
it was in at the time of that backup.
Operation completed successfully in 2.188 seconds.
Previous Post Next Post

Ω†Ω…ΩˆΨ°Ψ¬ Ψ§Ω„Ψ§ΨͺΨ΅Ψ§Ω„