Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question

1 Answer 1

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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