четверг, 24 марта 2011 г.

How to schedule sql server 2005 backup

Scheduling a daily backup of sql server 2005 database using sql agent is very easy. By following below steps anyone can do that.


1. Open sql server 2005 Management Studio and connect a server
2. Expand the tree (left navigation) ”Management->Maintenance Plans”
3. Right click on node Maintenance Plans and Click “Maintenance Plan Wizard” (As shown in figure below) which causes to open a wizard.

Image Hosted by ImageShack.us


4. Follow the wizard

5. In 2nd step of the wizard, You can schedule the task as clicking the Button “Change” as shown in the following

Image Hosted by ImageShack.us


6. Once you click the button “Change” you will get a new popup to enter shedule details as shown below.

Image Hosted by ImageShack.us


7. Click OK. It will save the schedule info and close the popup. And click Next button to follow the next step.

8. In this step you will be asked to check the check list for all the tasks those can be added in mainteance plan. Select “Backup Datbase (Full)” as shown in the figure.

Image Hosted by ImageShack.us


9. Follow the steps until you get following window. Once you get here Select one or more databases from the list of databases by clicking Dropdown for Databases.

Image Hosted by ImageShack.us


10. From the above window, browse the folder location where to store the backup files.

11. Continue the the steps until you get to Finish step.

12. Click Finish. Once you click finish, the wizard will execute the steps to to create a job to schedule database. Immediately you will notice a job created in Sql Agent -> Jobs.

13. As per the schedule, the job runs (Repeatedly or One time) and it creates backup file with name DB_NameMMddyyyyHHmm.bak (Ex: NorthWind060420081912.bak) in the specified folder (Borwsed in the above step).

0 коммент.:

Отправить комментарий