Files
CPXV2/CPXV2DBPatch/CreateCPXVLog.bat
2024-06-26 10:30:00 +09:00

18 lines
387 B
Batchfile

@echo off
SET ServerIP=%1
SET ServerPort=%2
SET UserID=%3
SET Passwd=%4
SET CPXV2LogDBName=%5
SET SqlCmdOption=-C -U %UserID% -P %Passwd% -S %ServerIP%,%ServerPort% -f 65001 -o .\logs\%CPXV2LogDBName%.log
SET DatabaseName=%CPXV2LogDBName%
sqlcmd %SqlCmdOption% -i .\sqlScripts\CPXV2Log_Create.sql
if errorlevel 1 goto errexit
goto end
:errexit
echo DB Patch Fail
goto end
:end
@echo on