Next query runs successfully:
select top(100) * from PackageSessionNodes
where Cast(ContentInteractions as nvarchar) != ''
Next gives me error Target string size is too small to represent the XML instance
update PackageSessionNodes set ContentInteractions = '<contentinteractions />'
where Cast(ContentInteractions as nvarchar) = ''
ContentInteractions is an xml column. No DDT defined on it.
How can I solve the second query so that I get those records with '' as xml?
I seems like SqlServer cannot deal with empty values that are stores in a xml column... but you can insert them... how's that?