September 2, 2016 at 3:18 am
September 4, 2016 at 11:11 am
The problem could be the code page you're specifying. 65001 CP is no longer supported.
Sue
September 4, 2016 at 12:44 pm
the only reason for upgrading to 2016 is the utf-8 encoding witch comes with it
meanwhile i tried another approach than succeeded:
set @xml=(select xml_data from FCSD.DBO.XmlImport)
set @xml_convert=cast(@xml as nvarchar(max));
IF OBJECT_ID('tempdb..##x') IS NOT NULL DROP TABLE ##x;
select @xml_convert AS x into ##x;
set @sql='bcp "SELECT x FROM ##x" queryout c:\1.xml -S '+@@servername+' -T -t -c -C 65001'
EXEC master..xp_cmdshell @sql
drop table ##x
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy