Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

SQL Server - Taking Multiple Backups of a database using single command

Jun 19 2011 11:32PM by Ramireddy   

Often, we will take the backup of a database and then we will maintain another copy of that file in a different location. Previously i used to do this in 2 steps. In first step, take the backup and then, copy that file to another location. I just learned from pinal's blog that we can do this in 1 step.

BACKUP DATABASE [AdventureWorks] TO
DISK = N'D:\AdventureWorks.bak'
MIRROR TO DISK = N'E:\AdventureWorks.bak'
WITH FORMAT, INIT,
NAME = N'AdventureWorks-Full Database Backup'
GO

Above query will take the backup of "AdvantureWorks" database and keeps the file at 2 locations.

Pinal has an interesting story about this. Read here.. http://blog.sqlauthority.com/2010/10/23/sql-server-taking-multiple-backup-of-database-in-single-command-mirrored-database-backup/

Read More..   [2 clicks]

Published under: SQL Server Tips ·  ·  ·  · 


Ramireddy
2 · 41% · 12972
6
 
4
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

Your Comment


Sign Up or Login to post a comment.

"SQL Server - Taking Multiple Backups of a database using single command" rated 5 out of 5 by 6 readers
SQL Server - Taking Multiple Backups of a database using single command , 5.0 out of 5 based on 6 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]