I have the following query to concat values using commas:
[Xml].query('for $x in //Name return concat($x, ", ")').value('.', 'nvarchar(max)')
Is it possible to write this using value()
only (without query()
)?
I have the following query to concat values using commas:
[Xml].query('for $x in //Name return concat($x, ", ")').value('.', 'nvarchar(max)')
Is it possible to write this using value()
only (without query()
)?