I am new to scripting and i cant seem to find the answer to this. I wrote a simple batch script to run a sql query and save the output as a .txt file. However, the results contain double byte characters (for Japanese data) which are being converted to question marks in the output.
This is the line in the script - I am hoping there is an easy answer (ie. adding some formatting code to the end of this line)?
sqlcmd -E -Smyservername -h-1 -iCust.sql -o Cust.txt
Thanks in advance