Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.