Schedule a database backup operation using SSMS - SQL Server (2024)

Edit

Share via

  • Article

This article describes how to schedule a database backup operation by using SQL Server Management Studio (SSMS) for SQL Editions that support SQL Server Agent. To schedule backups for SQL Express editions, see Schedule and automate backups of SQL Server databases in SQL Server Express.

Use maintenance plans to back up databases

You can use Maintenance Plans to back up databases and transaction log files, perform differential backups, and define retention periods for your backups. For more information, see:

Use the Script Action to Job option to back up databases

To schedule a database backup using the Script Action to Job option in SSMS, follow these steps:

  1. Start SQL Server Management Studio and select Connect > Database Engine.

  2. In the Connect to Server dialog box, select the appropriate values in the Server type list, in the Server name list, and in the Authentication list.

  3. Select Connect.

  4. In Object Explorer, expand Databases.

  5. Right-click the database you want to back up, select Tasks, and then select Back Up.

  6. In the Back Up Database - <DatabaseName> dialog box, make sure that Backup type is set to Full and Backup component is set to Database.

  7. Under Destination, select Disk for the Back up to option and then select Add. For other options on this page, see Backup Database.

  8. In the Select Backup Destination dialog box, enter a path and a file name in the Destinations on disk box, and then select OK.

  9. In the Script list, select Script Action to Job.

    Note

    If you don't see the Script Action to Job option, you may be running an express edition of SQL Server. You can check your edition by running the query select@@version. For more information, see Determine which version and edition of SQL Server Database Engine is running.

  10. In the New Job dialog box, select Steps under Select a page, and then select Edit if you want to change the job parameters.

    Note

    • In the Job Step Properties - 1 dialog box, you can see the backup command.

    • Microsoft is currently investigating an error message that can occur in SSMS at this step. If you get an exception at this step, repeat the procedure without this step and make any changes by editing the corresponding job under the Jobs menu under SQL Server Agent in Object Explorer.

  11. Under Select a page, select Schedules, and then select New.

  12. In the New Job Schedule dialog box, enter the job name in the Name box, specify the job schedule, and then select OK.

    Note

    If you want to configure alerts or notifications, you can select Alerts or Notifications under Select a page.

  13. Select OK two times.

    You receive the following message:

    The backup of database '<DatabaseName>' completed successfully.

Note

  • To verify the backup job, expand SQL Server Agent, and then expand Jobs. When you do this step, the SQL Server Agent service must be running.

  • You can use a similar procedure to schedule transaction log and differential backups if you make the appropriate selection in Step 6 for Backup type. If you don't see the Transaction Log option in Backup type, check the recovery model of the database. You can't take transaction log backups if you are using the Simple Recovery model for your database.

Manually create SQL Server Agent jobs

Alternatively, you can create and schedule your own backup jobs using SQL Server Agent. For more information, see Create Jobs and Schedule a Job.

See also

Feedback

Was this page helpful?

Schedule a database backup operation using SSMS - SQL Server (2024)
Top Articles
Leverage in Forex: Meaning, Types, Risk & How Does It Work? | 5paisa
What is Theta in Options Trading? Understanding Theta
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Obituaries, 2001 | El Paso County, TXGenWeb
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Colin Donnell Lpsg
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
San Pedro Sula To Miami Google Flights
Selly Medaline
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 6082

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.