rem sqlcmd -U sa -P r3ds0x -S VOLIAN -Q "Backup database [VEPROMS_JCB1] to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\VEPROMS_JCB1_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.BAK'"
rem ping 1.1.1.1 -n 1 -w 20000
sqlcmd -U sa -P r3ds0x -S VOLIAN -Q "restore database [VEPROMS_JCB1] from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\VEPROMS_JCB1.BAK'"
if errorlevel 1 pause
ping 1.0.0.0 -n 1 -w 2000 > NUL
sqlcmd -U sa -P r3ds0x -S VOLIAN -d VEPROMS_JCB1 -i "C:\Development\Proms\SQL\PROMS2010_jcb.SQL"
ping 1.0.0.0 -n 1 -w 2000 > NUL
sqlcmd -U sa -P r3ds0x -S VOLIAN -d VEPROMS_JCB1 -i "C:\Development\Proms\SQL\jcbAuditConfig.sql"
ping 1.0.0.0 -n 1 -w 2000 > NUL
sqlcmd -U sa -P r3ds0x -S VOLIAN -d VEPROMS_JCB1 -i "C:\Development\Proms\SQL\tableToAuditConfig.sql"
ping 1.0.0.0 -n 1 -w 2000 > NUL
sqlcmd -U sa -P r3ds0x -S VOLIAN -d VEPROMS_JCB1 -i "C:\Development\Proms\SQL\jcbAuditConfigProcs.sql"
ping 1.0.0.0 -n 1 -w 5000 > NUL
