Re: Table Size
Robin,
I "think" the "header" is the header of the dbf file. Names of the fields and stuff. I would think a cdx file would have something similar(not sure though). Try opening a dbf file with notepad and see what it looks like? CDX??
.
Announcement
Collapse
The Alpha Software Forum Participation Guidelines
The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
Moderators may also rename posts and threads if they are too generic or do not property reflect the content.
Moderators may move threads if they have been posted in the incorrect forum.
Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.
The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.
Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.
Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.
Bonus TIPS for Successful Posting
Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.
When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.
The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.
When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.
A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.
If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.
When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.
Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
- Be professional in your conduct
- Be kind to others
- Be constructive when giving feedback
- Be open to new ideas and suggestions
- Stay on topic
Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
- Spam.
- Vulgar language.
- Quotes from private conversations without permission, including pricing and other sales related discussions.
- Personal attacks, insults, or subtle put-downs.
- Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
- Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
- Sexually explicit or violent material, links, or language.
- Pirated, hacked, or copyright-infringing material.
- Encouraging of others to engage in the above behaviors.
If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
- Remove the Post or Thread - the content is removed from the forum.
- Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
- Temporarily Ban the User - user is banned from forum for a period of time.
- Permanently Ban the User - user is permanently banned from the forum.
Moderators may also rename posts and threads if they are too generic or do not property reflect the content.
Moderators may move threads if they have been posted in the incorrect forum.
Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.
The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.
Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.
Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.
Bonus TIPS for Successful Posting
Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.
When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.
The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.
When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.
A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.
If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.
When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.
Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less
Table Size
Collapse
X
-
Re: Table Size
Hi Robin,
My mistake. I meant FPT (which is the memo file as referred to in the text) and have corrected it on the posting.
The dbf header has information on the number of records, and record structure (fields) and a few other miscellaneous info.
Leave a comment:
-
Re: Table Size
Thanks Ira - I thought the CDX was for indexes? What constitutes the header value?
Leave a comment:
-
Re: Table Size
Each dbf file contains a fixed record size, so that most fields take up their width as described below.
Memo, Blobs and Memo-like fields use a 10 byte pointer field in the dbf file
Dates use 8 characters
Long time uses 17 bytes
Short time uses 8 bytes
Logical uses 1 byte
Character, Numbers use their width
and 1 extra byte per record for the mark/delete record flag
Compute the total size of the record (also displayed when modifying the structure) and multiple by the total # of records and add the header, which is limited to a maximum of 65535 bytes, but is more typically less than 512 bytes.
That total size must be less than 2 Gigs.
In addition, all bytes stored in the FPT (memo file) limit the size of the memo file to 2 Gigs as well (including older copies of each entry that were smaller than the current size of the memo entry)
Leave a comment:
-
Re: Table Size
Is it possible to estimate how many records a table can hold before it might reach this limitation? IOW does the record size and number of records in the table determine the file size alone or is there also some other factor? Does a record with 10 fields of 10 characters each actually equal 100 bytes? I do know that even an empty file takes up 1 kb, but past that, how do you estimate this?
Leave a comment:
-
Re: Table Size
Originally posted by DaveM View PostFunny thing,
I just took a 15 meg dbf file(packed) and split it into 2 tables, got rid of a couple fields that had never been used and now the 2 tables are under 10 megabytes. also to connect the 2 properly within sets I have 3 fields that are duplicates.
Dave
I need some help here before I go down the wrong road.
I have a set consisting 5 tables, typically count field of 30 and record size < 500. It somehow seemed easier to control smaller tables. However when i need to calculate in an emdebbed browse, I cannot use cross-table fields in the calculation, it seems as though all the fields required in the calculation ne to be in a single table. (?).
Do you think it is better to have a single table even though it may have a field count of > 200 and record size > 1000 ? This will allow me to calculate as above. Or are there dangers in making a single large table ?
Looking forward
Leave a comment:
-
Re: Table Size
Hi All
Just an update to this post, my customer reached the 2,147,483,648 bytes limit sooner than expected. I managed to remove some old records and I have created a archive routine which is going to be applied this weekend.
When the table reaches 2,147,483,648 bytes it just stops adding any more records to the table.
so in conclusion the table limit is : 2,147,483,648 bytes
what happens when it reaches : 2,147,483,648 bytes cannot add any more records
Andy
Leave a comment:
-
Re: Table Size
One thing that has confused me a little if the file, is now 2,050,828kb isn't this file already over 2gb?
2 GB= 2,147,483,648
Got 96,655,648 left
P.S.
These limits are abritrary and cautionary, but if I were you, I wouldn't push my luck.
Leave a comment:
-
Re: Table Size
Funny thing,
I just took a 15 meg dbf file(packed) and split it into 2 tables, got rid of a couple fields that had never been used and now the 2 tables are under 10 megabytes. also to connect the 2 properly within sets I have 3 fields that are duplicates.
Dave
Leave a comment:
-
Re: Table Size
Originally posted by [email protected] View PostOne thing that has confused me a little if the file, is now 2,050,828kb isn't this file already over 2gb?
Andy
2 gigabytes is actually 2 raised to the 31st power, or 2,147,483,648 bytes.
Based on this calculation, you haven't reached the limit yet.
Leave a comment:
-
Re: Table Size
Hi All
Thanks for your replies, It looks as if I need to get this sorted out ASAP. One thing that has confused me a little if the file, is now 2,050,828kb isn't this file already over 2gb?
Andy
Leave a comment:
-
Re: Table Size
Andy,
The file limit of 2 Gig applies to 1 file, so if you link a bunch of smaller tables, or put different memo fields in their own linked tables (recommended, but let's not get in that discussion here), then the sizes can normally be kept under the 2 Gig limit. Or use an SQL table, and there is no practical limit.
Leave a comment:
-
Re: Table Size
I found this at the following link.
The file format can also be an issue. The maximum size of a .DBF file is
2GB. That is because the file has to contain offsets to various other
locations within the file, and those offsets are based on 32-bit
integers. No software that is writing to a .DBF file can get around
this. Ideally, the software should detect when it it has written as much
data that the output file format can accommodate, refuse to write any
more, close the file, and inform the user of the situation. If the
software keeps writing then all it will do is convert a maximum-sized
file that is at least usable into a corrupt file that may contain more
data but is unusable because of messed up offset values.
Leave a comment:
-
Re: Table Size
Well, I think I'm wrong. According to Microsoft, who should know, the maximum size of a Visual Foxpro dbf file is 2 GB, independent of the OS system maximum file size:
http://msdn2.microsoft.com/en-us/lib...w9(VS.80).aspx
Leave a comment:
-
Re: Table Size
Just did a little search--NTFS supports 16 Terrabyte file size.
Mike
Leave a comment:
Leave a comment: