I have SQL Server 2016 on Microsoft Windows Server 2012 R2 Standard. When I tried to do BCP export with UTF-8 option, I get this error. Any idea how to solve this? I have read that SQL Server 2014 onward support UTF.
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Server Native Client 11.0] This version of SQL Server Native Client does not support UTF-8 encoding (code page 65001)
I used the following command to execute BCP:
bcp "SELECT TOP 10 * FROM MyTable WITH (NOLOCK)" queryout "C:\USERS\Direcotry\TEST\TestData.csv" -t"|" -c -C 65001 -r 0x0A -T -S ServerName
bcphad code page 65001 added in SQL Server 2014 SP (though according to the documentation it was 2016) Either way, if you are using 2016 it will support UTF8. Are you are using 2016? - LarnuTOPwithout anORDER BY, and why aNOLOCK(you do understand whatNOLOCKdoes, correct)? - Larnu