﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 01:58:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>Try SQL Backup Master. It can do the job, and is free:[url=http://www.sqlbackupmaster.com]http://www.sqlbackupmaster.com[/url]</description><pubDate>Thu, 17 Jan 2013 08:13:26 GMT</pubDate><dc:creator>Todd Beller</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>Thanks for the feedback, adding to briefcase.</description><pubDate>Wed, 03 Aug 2011 09:17:44 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>Sorted and for all of you that are interested....Set up a simple windows scheduled task that executes a batch file. Within the batch file I have the following[b]rem @echo offsqlcmd -S localhost -d dbname -i backup.sql -U myusername -P mypassword[/b]This then calls 'backup.sql'which contains the following syntaxUSE [dbname]GODECLARE	@return_value intEXEC	@return_value = [dbo].[prc_db-backup]		@db_name = N'dbname',		@db_datafile = N'datafilename',		@db_backup_path = 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup'SELECT	'Return Value' = @return_valueGOWhich executes a stored procedure 'prc_db-backup' which contains my T-sql to create my backupsSimple.</description><pubDate>Wed, 03 Aug 2011 09:13:56 GMT</pubDate><dc:creator>AHWB</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>[quote][b]Ninja's_RGR'us (8/3/2011)[/b][hr][quote][b]GilaMonster (8/3/2011)[/b][hr]You don't need any software at all. Use the windows scheduler.[/quote]Go sample backup code for that option?  Never tried to make it work that way :ermm:.[/quote]I don't, but I know that a google search will turn some up.</description><pubDate>Wed, 03 Aug 2011 08:08:42 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>[quote][b]AHWB (8/3/2011)[/b][hr]so can anyone help with the syntax required as im not familiar with sqlcmd[/quote]SQLCMD /? prints out the command-line options (like with most similar programs) or [url]http://msdn.microsoft.com/en-us/library/ms162773.aspx[/url]</description><pubDate>Wed, 03 Aug 2011 08:06:57 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>[quote][b]AHWB (8/3/2011)[/b][hr]Thanks for the link http://standalonesqlagent.codeplex.com/ but need something that's not in Beta.[/quote]ok, nothing else to offer beying what Gail already provided.</description><pubDate>Wed, 03 Aug 2011 08:04:06 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>Thanks for the link http://standalonesqlagent.codeplex.com/ but need something that's not in Beta.</description><pubDate>Wed, 03 Aug 2011 07:53:51 GMT</pubDate><dc:creator>AHWB</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>I understand that you can set up a backup task using windows scheduler, but how, I need help with the syntax.Looking at windows scheduler, Windows 7click create task (all the other options within windows scheduler are self explanatory)on the 'actions' tab click 'new'there is a 'program/script' files (with a browse button next to it)I entered the following - path to sqlcmd[b]"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE"[/b]and then within the add argument (optional) field the following[b]backup database database_name to disk =  'c:\database_name.bak'[/b]this did not work, i expect i need to add a login or something....so can anyone help with the syntax required as im not familiar with sqlcmd</description><pubDate>Wed, 03 Aug 2011 07:49:15 GMT</pubDate><dc:creator>AHWB</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>[quote][b]GilaMonster (8/3/2011)[/b][hr]You don't need any software at all. Use the windows scheduler.[/quote]Go sample backup code for that option?  Never tried to make it work that way :ermm:.</description><pubDate>Wed, 03 Aug 2011 07:32:57 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>You don't need any software at all. Use the windows scheduler.</description><pubDate>Wed, 03 Aug 2011 07:27:51 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>[url]http://standalonesqlagent.codeplex.com/[/url]</description><pubDate>Wed, 03 Aug 2011 07:21:36 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>SQL 2008R2 Express | SQL Agent help...Need to set up a backup scheduled task.</title><link>http://www.sqlservercentral.com/Forums/Topic1153499-1550-1.aspx</link><description>This is my first look at SQL Express 2008r2 and I have realised that SQL agent isn't part of the express edition. Normally on 2005/2008 std/ent I use SQL agent to schedule database backups and backup the transaction log etc.My first question is;1) How do you set up a scheduled task to back up a database, initial search suggests you have to use windows task scheduler but how is this done, or is there a better way?2) Following on from question 1, is there good, preferably free, software which can do what MS SQL agent does. I know MSDE Vale have their own SQL agent, is this any good or are there other options.3) linked with questions 1 and 2, I assume SQLexpress still requires the transaction log to be backed up, should this be set up using as per question 1 &amp; 2 above, I'm thinking of setting the recovery method to simple as the system that this is used on doesn't really require Full.I have searched the web but couldn't find much on these specific questions.</description><pubDate>Wed, 03 Aug 2011 07:17:09 GMT</pubDate><dc:creator>AHWB</dc:creator></item></channel></rss>