Skip to content

Commit 4321b87

Browse files
authored
Update bootstrap-sample-db.cmd
1 parent b395178 commit 4321b87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if NOT EXIST tpcxbb_1gb.bak (
3939
)
4040

4141
set SQLCMDSERVER=%SQL_MASTER_INSTANCE%
42-
set SQLCMDUSER=sa
42+
set SQLCMDUSER=admin
4343
set SQLCMDPASSWORD=%SQL_MASTER_SA_PASSWORD%
4444
for /F "usebackq tokens=1,2" %%v in (`sqlcmd -I -b -h-1 -W -Q "SET NOCOUNT ON; SELECT @@SERVERNAME, SERVERPROPERTY('IsHadrEnabled');"`) do (
4545
SET MASTER_POD_NAME=%%v
@@ -97,13 +97,13 @@ for %%F in (web_clickstreams inventory customer) do (
9797
if NOT EXIST %%F.csv (
9898
echo Exporting %%F data...
9999
if /i %%F EQU web_clickstreams (set DELIMITER=,) else (SET DELIMITER=^|)
100-
%DEBUG% bcp sales.dbo.%%F out "%%F.csv" -S %SQLCMDSERVER% -Usa -P%SQL_MASTER_SA_PASSWORD% -c -t"!DELIMITER!" -o "%%F.out" -e "%%F.err" || goto exit
100+
%DEBUG% bcp sales.dbo.%%F out "%%F.csv" -S %SQLCMDSERVER% -Uadmin -P%SQL_MASTER_SA_PASSWORD% -c -t"!DELIMITER!" -o "%%F.out" -e "%%F.err" || goto exit
101101
)
102102
)
103103

104104
if NOT EXIST product_reviews.csv (
105105
echo Exporting product_reviews data...
106-
%DEBUG% bcp "select pr_review_sk, replace(replace(pr_review_content, ',', ';'), char(34), '') as pr_review_content from sales.dbo.product_reviews" queryout "product_reviews.csv" -S %SQLCMDSERVER% -Usa -P%SQL_MASTER_SA_PASSWORD% -c -t, -o "product_reviews.out" -e "product_reviews.err" || goto exit
106+
%DEBUG% bcp "select pr_review_sk, replace(replace(pr_review_content, ',', ';'), char(34), '') as pr_review_content from sales.dbo.product_reviews" queryout "product_reviews.csv" -S %SQLCMDSERVER% -Uadmin -P%SQL_MASTER_SA_PASSWORD% -c -t, -o "product_reviews.out" -e "product_reviews.err" || goto exit
107107
)
108108

109109
REM Copy the data file to HDFS

0 commit comments

Comments
 (0)