Question: I have a bcp command exporting a sql query which outputs to a file . The problem is the file is being saved as Unicode type - causing a subsequent ETL process to fail. How can I fix? I want the file to export as ascii encoding bcp "select * FROM myTable" queryout E:\mytable.csv -w -t, -T -S SERVER\MYINST1 Answer: The quick answer is to ask you to add the -c and -C switches. From SQL Server Books Online "-c Performs the operation using a character data type. This option does not prompt for each field; it uses char...
Read more →