Я пытаюсь экспортировать данные с сервера MS SQL с помощью командной строки bcp . Проблема в том, что в экспортированном выводе отсутствует первая двойная кавычка в первой строке, и я не могу объяснить причину.
Ниже команды, которую я использую для экспорта:
/opt/mssql-tools/bin/bcp db_schema out dump.csv -c -t"\",\"" -r"\"\n\"" -S my_host -U my_user
Но в результате вывода отсутствуют первые двойные кавычки в первой строке (только в первой строке) экспортированного файла CSV:
801","40116","Hazelnut MT -L","Thursday Promo","Large","","5.9000","","801","1.0000","","3.6500","2.2500",".0000","default","","","","","Chatime","02/06/2014","09125a9cfffd4143a00e73e3b62f15f2","CB01","",".0000","5.9000","6.9000",".0000",".0000",".0000",".0000",".0000",".0000","0","","0","0","0","","","","","","","","","Modern Milk Tea","","","0","","","1","0","","","","","","","","0","Hau Chan","","","","","","","","","","0","","","","","","","-1","","","","","","","","","","","","0","00000000420714AA","2014-06-02","1900-01-01","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
Я что-то упустил?