We're about to add like 30 fields to the Sales Header table, and someone asked me what the maximum is, which is kind of an important thing to know
. I know there is a size limit peer record, but I can't find the document that described this.
I need to know the limit of the number of fields, or the maximum record size of a table. Any help would be appreciated.
Thanks in advance.
Comments
i need to know the limit of the number of fields, or the maximum record size of a table. Any help would be appreciated
For above question u provided one answer. That's fine.
Why dont u put next question answer?
What is limitation of the number of fields in table?
Thanks and regards
the number of fields depends on the size of the fields.
You could add
5 text field of length 20. or 1 field of length 100.
both will take same size.
So the answer also depends on the size of the fields, not on the number of fields.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
The limitation is the size of the record, which is determined by the number of fields times the field size. You're going to be able to add many more Boolean type fields as Code20 fields.
RIS Plus, LLC
Ara3n wrote
" the number of fields depends on the size of the fields.
You could add
5 text field of length 20. or 1 field of length 100.
both will take same size.
So the answer also depends on the size of the fields, not on the number of fields "
I could not understand u r answer properly.
For eample I created One table
I add 50 text fields of length 100,..........I want add some more text fields of length 100.
like this how many fields can i add to that table . :-k
thanks and regards
You can only add 39 fields of length 100.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Not zero.
What u told Record Size should not cross above 4 KB.
But what about company information Table record Size = 81290,
Rounding method table record size= 8112
this is a small example.
Like above u have many tables . what is logic? :-k
could u throw explanation
What I've been talking and you've asked for is the how many fields can you have on a table.
Two different things.
I feel like I'm lost in translation.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I feel like I'm lost in translation. :?
I understand what u told regarding howmany fields can i add in a table.
I think that u told this information based on the record size . Yes.
If it is Yes then what about that company information table record size.......... #-o
I hope u can understand my problem now
thanks and regards
So a boolean field is 4 bytes, a CODE field of 8 Characters uses 12 bytes, a text field of length 8 is 8 bytes.
It really is quite complex to know exactly how many fields you can have.
This information is extremely critical when designing high performance databases, since the incorrect design of Field type and length in Keys has a major performance impact that most developers these days just don't care about.
I was just curious about this blurb - we are sitting on a SQL server and are still limited to 4KB max record size, even though the above suggests we should be good up to 8KB. What version was Luc referring to in his post?
We have 3.7B objects, but are using 5.0 executables, and as i mentioned, a SQL backend. thanks!
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
I just checked and nope, it's controlled in the application.
My guess they kept it the same for compatibility reasons.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
The native can only handle ~4000bytes.
To be compatible with the native server the max. record size is ~4000bytes.
The SQL Server self allow 8060 bytes.
does anyone know if NAV2009 (which has no Native db if i am not mistaken) has been updated to allow for 8KB record size? i am curious because the system i am working in has several tables that are simply out-of-room. the sales header being one of them... yikes!
...and good posts are timeless!
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes you are mistaken NAV 2009 does have a native DB.
in terms of out of space for tables, it might be time to take a serious look at the design of the table, and maybe a clean up is over due.
obviously we need to take a hard look at what is in there and what can be done.
this is what happens when you let people make any all mods they can think of.
I know I can add Dummy Fields until I get the error message when saving the table, but I was wondering if there was a more efficient way of finding this information?
I thought the Record Size field in the Table Information virtual table may have been the value I was looking for but when I filter to Table 37 in this table, there is a different Record Size value for the table in each of the companies in the database, and some of the other tables seem to have a Record Size greater than 8K.
Any pointer would be great.
Thanks in advance,
Dave