UniDAC truncates long strings to 255 characters when inserting in batches
Posted: Tue 12 Oct 2021 08:36
Hi,
I am using the batch insert function introduced by UniDAC official documentation (https://www.devart.com/unidac/docs/batchops.htm), but when I insert a long string (more than 255 characters) into the Access database , The UniDAC component will truncate the string to 255 characters.
I checked the Access database field settings and confirmed that the field type is Long Text, so there is no problem with the database field settings.
If you do not use bulk inserts but insert one at a time, there will be no problem. I have tried using ADO components to perform data insertion and there is no problem.
So do I need to set anything to use the batch insert function of UniDAC components?
PS: I am using Delphi 7 + UniDAC 8.4.4 + Access 2016.
I am using the batch insert function introduced by UniDAC official documentation (https://www.devart.com/unidac/docs/batchops.htm), but when I insert a long string (more than 255 characters) into the Access database , The UniDAC component will truncate the string to 255 characters.
I checked the Access database field settings and confirmed that the field type is Long Text, so there is no problem with the database field settings.
If you do not use bulk inserts but insert one at a time, there will be no problem. I have tried using ADO components to perform data insertion and there is no problem.
So do I need to set anything to use the batch insert function of UniDAC components?
PS: I am using Delphi 7 + UniDAC 8.4.4 + Access 2016.