sql - How to use FOR XML PATH('') in a query without escaping special characters? -
i have query:
select distinct f.courseeventkey, ( select f.title + '; ' [text()] @facilities courseeventkey = f.courseeventkey order f.title xml path('') ) facilities @facilities f it produces result set:
courseeventkey facilities -------------- ----------------------------------- 29 test facility 1; 30 memphis training room; 32 drury inn & suites creve coeur; the data fine, & encoded &, not suitable purposes.
how can modify query return original values of special characters in data?
i think you're going have manually wrap facilities inline query block replace statements reverse automatic escaping.
it sounds you're wanting concatenate multiple facilities present given course. have considered other options? this question has several possible approaches don't have issue escaping characters.
Comments
Post a Comment