Solved

automate full database backups with sql server 2008 r2 EXPRESS

Posted on 2012-03-29
2
628 Views
Last Modified: 2012-04-02
hey guys
looking to automate backups of a sql 2008 r2 express database
i want to make a full backup every night and keep the past 10 backups
anyway to do this?
0
Comment
Question by:jsctechy
2 Comments
 
LVL 15

Accepted Solution

by:
Anuj earned 500 total points
Comment Utility
As SQL Server 2008 R2 express edition is missing SQL Server agent, you should depend on windows schedule for scheduling the backups. Prepare a query to backup your database and save it as SQL file, then create a windows batch file that executes this sql file in sqlcmd mode. using windows scheduler call this batch file and schedule it to run on every day.

For retention, this option is available in BACKUP Command.
0
 
LVL 25

Expert Comment

by:TempDBA
Comment Utility
I personally like the suggestion from expert Anuj..
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# SQL BULK INSERT CLASS 5 33
SQL Connection (Error 18456) 14 29
sql server query? 6 26
SQL Server 2016 Developers Edition Install 4 56
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now