SQL Server 2005 Database automatic Backup Setup method

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

SQL Server 2005 Database Tutorial Automatic Backup Setup method

Specific steps to implement automatic backups in a SQL Server 2005 database:
In the toolbox on the left (if not, press ctrl+alt+x), drag the Backup database task to the yellow area in the middle

Double-click the dragged out of this task, the design properties will appear in the window

In the database, select the database you want to back up, and then set up the backup to there, and set the file name of the backup

Once you've designed it, click OK, and you can also click T-SQL to see what kind of statements you're going to use to deal with your needs.


Click the "..." after "schedule". button to set the time schedule for execution.

The last to save it.

Detailed Operation instance
1. Open SQL Server Management Studio

2. Start SQL Server Agent

3. Click Job-> New Job

4, "General" Enter the name of the job

5, the new step, the type of T-SQL, in the following command to enter the following statement (red part to be based on their own actual changes, d:sql2005back to their own backup path, Sq_test modified to the name of the database to be backed up)

DECLARE @strPath NVARCHAR (200)

Set @strPath = Convert (NVARCHAR), GETDATE (), 120)

Set @strPath = REPLACE (@strPath, ': ', '. ')

Set @strPath = ' D:sql2005back ' + @strPath + '. Bak '

BACKUP DATABASE [sq_test] to DISK = @strPath with Noinit, Nounload, noskip, STATS = ten, Noformat

6, add the plan, set the frequency, time and so on.

OK, finish.

Related Article

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.