[성현모] DBPatch 간소화, 경로 변경
This commit is contained in:
20
DBPatch/sqlScripts/_UpdateDB.bat
Normal file
20
DBPatch/sqlScripts/_UpdateDB.bat
Normal file
@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
|
||||
SET Schema=%1
|
||||
SET ServerIP=%2
|
||||
SET ServerPort=%3
|
||||
SET UserID=%4
|
||||
SET Passwd=%5
|
||||
SET DBName=%6
|
||||
|
||||
SET SqlCmdOption=-U %UserID% -P %Passwd% -S %ServerIP%,%ServerPort% -d %DBName% -o .\logs\%DBName%.log
|
||||
SET DatabaseName=%DBName%
|
||||
sqlcmd %SqlCmdOption% -i .\%Schema%_Update.sql
|
||||
|
||||
if errorlevel 1 goto errexit
|
||||
goto end
|
||||
:errexit
|
||||
echo DB Patch Fail
|
||||
goto end
|
||||
:end
|
||||
@echo on
|
||||
Reference in New Issue
Block a user