I'm populating a BigText variable from a Stored proc. The output of the stored proc is VarChar(Max). For some reason the following statement doesn't work.
tmpText.ADDTEXT(lADORecordset.Fields.Item(0).Value);
If I add a FORMAT to the above statement it will work but only if the varchar is <= 1024 characters.
tmpText.ADDTEXT(FORMAT(ADORecordset.Fields.Item(0).Value));
Any idea how to get more than 1024 characters to work with BigText?
Thanks.
Answers
The ADOStream variable is automation(Stream) and the TargetText is BigText. I'm updating the TargetText variable 1024 characters at a time but you could always use a smaller value.