Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

839 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