You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
211 B

set datetimef=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%.BAK
sqlcmd -S ./ -U sa -P dpm2018 -Q "BACKUP DATABASE [dpm_roellin] TO DISK='e:\DPM_Backup\dpm_roellin_%datetimef%'"
pause