Checking your DB File Fragments is a part of performance troubleshooting. Press F2 (or Ctrl + 1) in QuickBooks Desktop, to see your "DB File Fragments" number. An excessive number of DB File Fragments can degrade your performance.
What are DB File Fragments?
- Discrete blocks of your hard drive in which Windows is storing your data file.
- A normal part of the operation of any program running under a Windows OS.
- A function only of the hard drive on which your data file is stored.
DB File Fragments are not:
- Created by QuickBooks Desktop or by the data manager.
- Corrupted blocks of your company data file.
- Causes or indications of damage in your data file (e.g., balance sheet out of balance).
- Related to QuickBooks Desktop users or how they log in to the data file.
For more information, see http://windows.microsoft.com/en-US/windows-vista/What-is-disk-defragmentation
How do DB File Fragments affect QuickBooks Desktop operation?
Fragmentation is not a reason to reinstall QuickBooks Desktop or to reenter data.
Excessive fragmentation can decrease performance because QuickBooks Desktop (and other applications) must read multiple blocks on your hard drive to retrieve data from a single file. Some guidelines are:
- DB Fragments fewer than 100 usually do not affect QuickBooks' performance.
- If your DB Fragments are more than 100, you should defragment your server/host hard drive (see below).
Reduce DB file fragments
Important: Disk Defragmenting can take a long time to complete, especially if the disk has not been defragged for a long time. It may be best to run it overnight or even over the weekend.
- In your company file, press F2 and record the number of DB File Fragments.
- Follow instructions at http://windows.microsoft.com/en-US/windows-vista/Improve-performance-by-defragmenting-your-hard-disk
- Repeat Step 2 and note the difference in the number of DB File Fragments.
You can set most Windows computers to defrag automatically.
- For Windows 10, 8, and 7: http://windows.microsoft.com/en-US/windows7/Schedule-Disk-Defragmenter-to-run-regularly
If you cannot defragment your server/host hard drive (the server is too busy or you do not have permissions) you can Create and restore a Portable Company File (PCF).
This technique can reduce DB File Fragments because it creates a new copy of your company data file which Windows stores on the hard drive. Be aware that:
- If the new file is stored in a less-fragmented portion of your drive, the DB File Fragments could decrease.
- If the new file is stored in a more-fragmented portion of your drive, the DB File Fragments could increase.
You must Create and Restore the PCF on your server/host, which means that you must have the full QuickBooks program installed on your server/host, not just the QuickBooks data manager. If you copy your data file to a workstation, create and restore the PCF, and then copy your file back to your server/host, then the DB File Fragments may not change.