I want to export a varchar(max) column (SQL 2005) to an xml UTF 8 using BCP out to a file. I tryed using the -w option for BCP but so far it encodes my special characters in strings like –

Is there's an option to skip the special characters because I don't want any & or # in my final xml ?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

XML encodes special characters using the escape sequences. When you ask for XML not to contain escape sequences for special characters you ask for XML which is not XML, so its an inherent contradiction. You can ask for a string or you can ask for an XML. Make up your mind.

link|improve this answer
You're right Remus ! – Paul Jan 26 '10 at 8:58
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.