sqlexec2.bat 244 B

123456789
  1. @call "%~dp0config.bat" 0 > nul
  2. @call "%~dp0config2.bat" > nul
  3. echo %~n1
  4. sqlcmd.exe -S %DEST_SERVER% -d %DEST_DATABASE% -U %DEST_USER% -P %DEST_PASSWORD% -b -i %~1 -o ..\logs\%~n1.sql.log
  5. if %errorlevel% neq 0 (
  6. type ..\logs\%~n1.sql.log
  7. )