Added the Database backup script

This commit is contained in:
tanshu 2015-03-18 09:29:03 +05:30
parent b1a9d2daae
commit 2b84c11107
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,3 @@
BACKUP DATABASE [Pets] TO DISK = N'C:\Users\tanshu\Programming\Pets.bak' WITH DIFFERENTIAL,
NOFORMAT, NOINIT, NAME = N'Pets-Differential Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

View File

@ -0,0 +1 @@
sqlcmd -U sa -P 123456 -S . -d Pets -i "C:\Users\tanshu\Programming\Back.sql" >> "C:\Users\tanshu\Programming\backup.log"