Solved

automate full database backups with sql server 2008 r2 EXPRESS

Posted on 2012-03-29
2
635 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
ID: 37782329
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
ID: 37782756
I personally like the suggestion from expert Anuj..
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

773 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