Hi All,
I know there is a memory limitation (i think 4mb) in adding fields to a table, how can we know how much of the space is used up in a table. Is there any shortcut way other than summing up for each fields one by one.
Thanks
Vineeth
Thanks and Regards
Vineeth.R
0
Comments
To be honest if the tables are going above 4MB I'd start to look to see if they have been normalised properly...
Hi
The field table limit is 4Kbyte (4000Bytes for precision...).
So a "code 20" is 20 bytes
You can use the "Field" virtual table and filter for your table.
Skip disabled fields, flowfields and flowfilters and sum the "len" field.
Bye
Matteo
Thanks, the field table can help but for big tables its difficult to go and look for how many flowfields are there in it to skip. Any other easier way to calculate the table memory or to skip the flowfields and calculate the rest of the fields.
Vineeth.R
Difficult??? :?
do you need the "table definition size" or the size of the table on database?
bye
matteo
@Vineeth, you should never reach the limit. If you even get close to it it means that you have a badly designed system that needs to be redesigned and done properly. Even if you work out the maximum and use all that up, then you are pretty much guaranteed that you wont ever be able to do an upgrade.
Re-look at the code you have written and redo it.
Hi david
mmm
i found this thread
viewtopic.php?f=23&t=27973&hilit=field+size
very interesting!
but... Decimal on c/side database is 12 Bytes but reading
http://msdn.microsoft.com/en-us/library/ms187746.aspx
Decimal (38,20) is 17 Bytes
Sql Server page/cluster limit si 8Kbytes (nav reduce this to 4kbyte for compatibility with C/Side database via FBK)... but the table definition size can change its size depending of database engine...
Nav assume that his masimum4kByte record will be correctly stored on SQL because the SQL Page size is 8Kbyte and then 12Bytes or 17 Bytes isn't a problem?
Thank you
Matteo
i completly agree with you:
My last question was more "academic" than resolve the problem signaled by Vineeth (already resolved by your post).
Bye
Matteo
yep :thumbsup: