--first transaction backup
BACKUP LOG AdventureWorks --database name
TO DISK = 'D:\Ritesh\adv-log.trn' --path and filename where you want to put your backup,
WITH
NOUNLOAD, SKIP, NOFORMAT
--full backup
BACKUP DATABASE AdventureWorks
TO DISK = 'D:\Ritesh\adv-fullbackup.bak'
WITH INIT,
NOUNLOAD, SKIP, NOFORMAT
|