I have a single column table in SQL Server.
This column hold each row of an XML document.
Sample table :
Column
---------------
Row1: <ROOT>
Row2: <Name>name1</Name>
Row3: </ROOT>
Column data type is nvarchar(max)
I want to do:
DECLARE @RES_XML XML
SET @XML = Set from table above
How can I sum up all rows of the table above and populate @RES_XML
?
Note: when concatenated; all data in the table exceeds nvarchar(max)
limit.