Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
The file SqlCheckBoxListPreValueEditor.cs forces the Sql CheckBoxList to use Nvarchar. This has size limitations and can lead to the "String or binary data would be truncated" error if a lot of data is stored. (See related older issue: http://our.umbraco.org/forum/using/ui-questions/31965-uComponents-xPath-checkboxlist-String-or-binary-data-would-be-truncated)
I feel that this (and the other Sql List data types) should be changed to use Ntext (line 50, https://ucomponents.codeplex.com/SourceControl/latest#uComponents.DataTypes/SqlCheckBoxList/SqlCheckBoxListPreValueEditor.cs) or have an option to use nvarchar or ntext.
This issue exists in the latest v 5 version (didn't check v6) of uComponents.
Thanks
Hi Summit,
I've just checked the source code for the SQL CheckBoxList - and you're right, it does default to using the Nvarchar column for storing the data.
Could you raise this as a bug on our issue tracker please? Then we can schedule a fix for a future release. https://ucomponents.codeplex.com/WorkItem/Create
Thanks, - Lee
Done. Thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
SQL CheckBoxList - currently uses nvarchar for storage which can cause the String or binary data would be truncated error
The file SqlCheckBoxListPreValueEditor.cs forces the Sql CheckBoxList to use Nvarchar. This has size limitations and can lead to the "String or binary data would be truncated" error if a lot of data is stored. (See related older issue: http://our.umbraco.org/forum/using/ui-questions/31965-uComponents-xPath-checkboxlist-String-or-binary-data-would-be-truncated)
I feel that this (and the other Sql List data types) should be changed to use Ntext (line 50, https://ucomponents.codeplex.com/SourceControl/latest#uComponents.DataTypes/SqlCheckBoxList/SqlCheckBoxListPreValueEditor.cs) or have an option to use nvarchar or ntext.
This issue exists in the latest v 5 version (didn't check v6) of uComponents.
Thanks
Hi Summit,
I've just checked the source code for the SQL CheckBoxList - and you're right, it does default to using the Nvarchar column for storing the data.
Could you raise this as a bug on our issue tracker please? Then we can schedule a fix for a future release.
https://ucomponents.codeplex.com/WorkItem/Create
Thanks,
- Lee
Done. Thanks.
is working on a reply...