Hi Geoff
Thanks a lot for your detailed answer.
I just had a view to the account table (dbo.AccountBase) in SQL Server Management Studio.
Is there an easy possibility to see the "width" of the table definition, for example in properties?
And last but not least, after reading your answer concerning custom fields I'm not fully sure dbo.AccountBase is the right one? It contains IMO standard and custom fields.
Thank you in advance, very appreciated.
Regards
Heinz
Original Message:
Sent: Apr 30, 2020 08:40 AM
From: Geoff Ables
Subject: Maximum Record Length
CRM Database Limits:
- CRM stores all records in SQL tables, the limits imposed are mostly the same as SQL limits
- The default fields are stored in one table, while the custom fields are stored in another - so your custom fields have use of a full SQL table
- 1024 columns (note that different CRM field types use a different number of columns - so the real number of fields is probably somewhat closer to 600-800.
- I'm not certain, but I believe there is also a limit of 8060 bytes per record (this may be a hard limit or a best practices recommendation for performance - and it may no longer be current - so I would regard this as a soft limit - you're safe below this limit, but if you think you may need to go over, then do some testing to be sure)
- In general, multiply the total length of your text field by 2 in order to get the number of bytes.
- I believe SQL only consumes the actual text length populated in text fields - so you may not see a performance hit until you have records that have these fields fully populated
And I believe text fields are limited to 4000 characters - so with one field of that size you may use nearly all of the recommended record size.
All of that is directional only - but hopefully helpful.
Check back in with us if you do some testing or learn something else.
------------------------------
Geoff Ables
Managing Partner
C5 Insight
Charlotte NC
Original Message:
Sent: Apr 29, 2020 05:36 AM
From: Heinz Arnold
Subject: Maximum Record Length
Hi experts
Maybe a strange question...
What is the maximum record length of an entity in CRM 2016 (On prem, running on SQL Server 2016)?
Reason for this question: Is there a need to skimp with the lenght of new textfields?
Thank you in advance.
Heinz