Академический Документы
Профессиональный Документы
Культура Документы
SQL Tip: Create an Automated Backup of Your Microsoft SQL Server Express Database
Gosto
1
Wed 6 J un 2 0 1 2
J ump:
Connect with Us
Email Newsletter
Developer Team Blog
Facebook
Twitter
Additional Resources
Links to Related Sites
Microsoft A ccess
Developer Help Center
Book Recommendations
My FMS
A ll Our Microsoft
A ccess Products
Searc h:
Go
www.fmsinc.com/free/NewTips/SQL/SQLServerExpressDatabase/Automated_Backup.asp
1/2
06/06/12
SQL Tip: Create an Automated Backup of Your Microsoft SQL Server Express Database
8. Click Ok. The backup device is now setup. Repeat steps 3-7 for each database that
you wish to backup.
9. Create a batch file using the following syntax (this is used to execute the backup
device). A syntax example is below (remember to save this file with a BAT file
extension):
===< Begin Code Batch Script >===
sqlcmd -S MYSERVER\OFFICESERVERS -E -Q "BACKUP DATABASE MASTER TO
TEST"
===< End Code Batch Script >=====
..where
..where
..where
..where
10. Finally, open the Microsoft Windows Scheduler and assign the batch file created above
to a scheduled event. Set the event to run at the point you wish. For more information
on the Microsoft Windows Scheduler and its useful functionality, please perform a search
of the web using your preferred search engine or consult your Microsoft Windows
documentation.
*Special thanks to Microsoft Technical Support for their demonstration on how to accomplish
this task
C ontac t U s l
www.fmsinc.com/free/NewTips/SQL/SQLServerExpressDatabase/Automated_Backup.asp
2/2