Microsoft KB Archive/88987

= How to Calculate the Approximate Size of a .DBF File =

Article ID: 88987

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a

-



This article was previously published under Q88987



The following formula calculates the size of a .DBF database file

(RECSIZE * RECCOUNT)+HEADER+1

where:
 * RECSIZE returns the number of bytes for each record.
 * RECCOUNT returns the number of records in the .DBF file.
 * HEADER returns the size of the DBF header. The header includes all the information about the .DBF file, including field names and sizes.

This information can be very useful when you are trying to write backup routines for an application. You can use this formula in conjunction with the DISKSPACE function to determine if the backup copy of the database will fit on a disk.

Additional query words: VFoxWin FoxDos FoxWin 1.00 data

Keywords: KB88987

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.