MSSQL Automatic BACKUP Database

Source: Internet
Author: User
Tags mssql

The recent project, need to use the MSSQL automatic timing backup function, originally wanted to use C # to write one, but heard in the MSSQL2008 has integrated powerful automatic backup function, so the knife into the battle, mercilessly pondering a:

First, open MSSQL2008, and then in the Manage big class, double-click the maintenance plan subclass, which will show the task list if you have previously set up the task schedule, and if not, nothing will be displayed.

On the maintenance plan, right-click, select New Maintenance Plan, and then enter a name, where we enter the default name "Maintenanceplan" and then OK. Then, in the toolbar, in the General tab, drag the Backup database task to the design form, as shown in:

Then, in the design interface, on the backup Database task, double-click, and then pop up the dialog box, set various properties:

When the settings are complete, click OK. Then in the scheduled task, click on the right side of the calendar small icon, the automatic trigger time settings:

Then the popup box appears, in the popup box, we make the following settings:

Then, we set to every 22:38 trigger, then click OK, and finally click "Ctrl+s" to save, you will find that in the maintenance plan and SQL Server Agent job, will generate two names are:

Maintenanceplan and Maintenanceplan.subplan_1 's mission plan. Add success!

So the thing to remember is:

First of all, your backup file save path, already to exist, the database is not to give you automatically create path, otherwise will backup failed!

Second, if you set up a repeat of this task plan, then you must make the SQLAgent service automatically start state, otherwise the words are not able to automatically execute.

MSSQL Automatic BACKUP Database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.