Removed -o in Linux since some version of bcp doesn't support it

This commit is contained in:
Umachandar Jayachandran
2018-10-18 16:41:41 -07:00
parent a6768e8224
commit f14be6ef94
@@ -39,7 +39,7 @@ for table in web_clickstreams inventory
do
echo Exporting $table data...
# WSL ex: "/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn/bcp.exe"
$DEBUG bcp sales.dbo.$table out "$table.csv" -S $SQL_MASTER_INSTANCE -Usa -P$SQL_MASTER_SA_PASSWORD -c -t, -o "$table.out" -e "$table.err" || (echo $ERROR_MESSAGE && exit 3)
$DEBUG bcp sales.dbo.$table out "$table.csv" -S $SQL_MASTER_INSTANCE -Usa -P$SQL_MASTER_SA_PASSWORD -c -t, -e "$table.err" || (echo $ERROR_MESSAGE && exit 3)
done
# Copy the data file to HDFS