exec master..xp_cmds hell 'bcp "SELECT '<?xml version="1.0" encoding="utf-8"?>' UNION ALL SELECT (SELECT * FROM tablename FOR XML EXPLICIT)" queryout c:\test.xml -w -r "" -Sdataserver -Usa -Ppassword'
The above query shows syntax error at '<'. I was missed something here in string manipulation. Can any one have idea, where i miss?
The above query shows syntax error at '<'. I was missed something here in string manipulation. Can any one have idea, where i miss?
Comment