19 lines
366 B
Batchfile
19 lines
366 B
Batchfile
@echo off
|
|
|
|
SET ServerIP=%1
|
|
SET ServerPort=%2
|
|
SET UserID=%3
|
|
SET Passwd=%4
|
|
SET DBName=%5
|
|
|
|
SET SqlCmdOption=-U %UserID% -P %Passwd% -S %ServerIP%,%ServerPort% -d %DBName% -o ..\logs\%DBName%.log
|
|
SET DatabaseName=%DBName%
|
|
sqlcmd %SqlCmdOption% -i .\SystemX.DB.AccountDB_Update.sql
|
|
|
|
if errorlevel 1 goto errexit
|
|
goto end
|
|
:errexit
|
|
echo DB Patch Fail
|
|
goto end
|
|
:end
|
|
@echo on |