Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm gonna create a file to save a large database. But I don't know how big it can be at most. what are the factors to define maximum size for a file?
Posted
Comments
Richard C. Andrews 31-Oct-11 16:06pm    
Are you creating this database using source code or are you using a program?
If you are using a program, what program?
If you are using source code, on what platform do you intend on using the database?

The theoretical limit on NTFS is 16 TB (minus a few KB).
 
Share this answer
 
Comments
Espen Harlinn 31-Oct-11 15:33pm    
5'ed - 18,446,744,073,709,550,592 bytes (actually limited to 17,592,185,978,880 bytes, but the design provides for the larger number) - Wikipedia
Your drive space, and the the operating system define the limits of the maximum file size.

Assuming you're running Windows Vista or Windows 7, your file size can go into the terabytes.

This isn't really a C++ question though.
 
Share this answer
 
(I haven't done a lot of DB in a while)
"what are the factors to define maximum size for a file?"

You need to compute the data size for one record in your database. (i.e. sum of the size of each field,)

Then your check what are the requirements for your database, what is the number of records your database should hold, then just compute the maximum size you will need.

When that is done, you will have to decide the best method to handle that amount of data.

Max.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900