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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -