As the question title says, I am trying to wrap a SELECT statement in SQL Server with CDATA
without using FOR XML EXPLICIT
. I currently use FOR XML PATH
, like so:
SELECT p.SKU AS [BasicInfo/SellerPartNumber]
FOR XML PATH('Item')
I know that I can convert this to FOR XML EXPLICIT
and wrap in a CDATA
, but is there a purely SQL way to wrap this in CDATA
apart from just concatenating?