@call "%~dp0config2.bat" rem %1 = SQL-Query @echo off sqlcmd.exe -S %DEST_SERVER% -d %DEST_DATABASE% -U %DEST_USER% -P %DEST_PASSWORD% -Q %1 -p