-
Nigel Pilsbury
- PowerBuilder
- Wednesday, 21 January 2026 04:55 PM UTC
We are updating a MS SQL Server Text type column with RTF data using the code shown below in PB22 with no problem.
Updating the same record in the same MS SQL Server database running in PB25 throws an 'Operand Type Clash: Varbinary is incompatible with Text' error message.
I understand we should now be using a Varbinary(Max) column type rather than Text column type for RTF data. Is this correct?
What is different about PB25 that is causing this issue?
Thanks for the help.
ls_richtext = rte_1.CopyRTF(False)
If lb_content Then
lblob_data = Blob(ls_richtext)
UPDATEBLOB cm_jp_task
SET cmjt_description_long = :lblob_data <<<<< This is a Text type column
WHERE cm_jp_task.cmjt_primary_key = :ll_key;
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.