Solved

Can SQL 2008 R2 Express be set to make a backup file nightly

Posted on 2010-08-15
3
566 Views
Last Modified: 2012-05-10
We are using SQL 2008 R2 Express to store less than 100 MB of data. Is there a way to set SQL to perform a nightly backup to the hard drive?
thanks,
pat
0
Comment
Question by:mpdillon
  • 2
3 Comments
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 33442331
you can use this workaround;

http://www.sqlteam.com/article/scheduling-jobs-in-sql-server-express

or sqlcmd together with windows task scheduler
0
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 500 total points
ID: 33442342
using task scheduler, the command should be something like

Sqlcmd -S .\SQLEXPRESS -q "backup database mydbname to disk = N'c:\backup\location\mydb.bak''

the trick is that the account used to run the scheduled task must be able to login to the sql server, and sql server must have access to the backup location
0
 

Author Closing Comment

by:mpdillon
ID: 33446946
Thanks for writing out the command line. It really helps a novice like me.
pat
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Attaching Database Failed ? 3 37
Help Required 3 89
Find SQL query used by application 3 16
sql server service accounts 4 19
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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.

815 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

9 Experts available now in Live!

Get 1:1 Help Now