From a380e073a7c5cc42bcb39ff58257a8ebb16d9cd0 Mon Sep 17 00:00:00 2001 From: Umachandar Jayachandran Date: Wed, 13 Mar 2019 14:09:55 -0700 Subject: [PATCH] Updated sqlcmd to workaround missing -v option in Linux --- samples/features/sql-big-data-cluster/bootstrap-sample-db.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh index 434f0b12..14cb9628 100644 --- a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh +++ b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh @@ -44,7 +44,8 @@ $DEBUG rm tpcxbb_1gb.bak echo Configuring sample database... # WSL ex: "/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn/SQLCMD.EXE" -$DEBUG sqlcmd -S $SQL_MASTER_INSTANCE -Usa -P$SQL_MASTER_SA_PASSWORD -I -b -v SA_PASSWORD="$KNOX_PASSWORD" < "$STARTUP_PATH/bootstrap-sample-db.sql" > "bootstrap.out" || (echo $ERROR_MESSAGE && exit 2) +export SA_PASSWORD=$KNOX_PASSWORD +$DEBUG sqlcmd -S $SQL_MASTER_INSTANCE -Usa -P$SQL_MASTER_SA_PASSWORD -I -b < "$STARTUP_PATH/bootstrap-sample-db.sql" > "bootstrap.out" || (echo $ERROR_MESSAGE && exit 2) for table in web_clickstreams inventory customer do