Solved

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

Posted on 2010-08-15
3
561 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

757 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

22 Experts available now in Live!

Get 1:1 Help Now