Skip to content

Commit a380e07

Browse files
committed
Updated sqlcmd to workaround missing -v option in Linux
1 parent 9b797bf commit a380e07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

samples/features/sql-big-data-cluster/bootstrap-sample-db.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ $DEBUG rm tpcxbb_1gb.bak
4444

4545
echo Configuring sample database...
4646
# WSL ex: "/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn/SQLCMD.EXE"
47-
$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)
47+
export SA_PASSWORD=$KNOX_PASSWORD
48+
$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)
4849

4950
for table in web_clickstreams inventory customer
5051
do

0 commit comments

Comments
 (0)