﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Backups / SQL Server 7,2000  / SQL Express Backup / 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:17:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Thank you. I assume the system db backup actions are less often then user dbs.</description><pubDate>Mon, 04 Feb 2013 09:02:07 GMT</pubDate><dc:creator>mr.jeff.freedman</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>System databases can get corrupted just as user databases.In case of corruption, you'll need a backup copy if you don't want to install from scratch.</description><pubDate>Mon, 04 Feb 2013 02:51:47 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>[quote][b]vikingDBA (1/18/2013)[/b][hr]  Create one of these .sql files for each of the databases that you want to back up, including the system databases (master, model, msdb).[/quote]Why is there need to backup system DBs too?</description><pubDate>Sat, 02 Feb 2013 10:42:17 GMT</pubDate><dc:creator>mr.jeff.freedman</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Here is a simple example.First file is the .sql script.  It is invoked using SQLCMD in a batch file.  Create one of these .sql files for each of the databases that you want to back up, including the system databases (master, model, msdb).Then create a .bat file and have a line in it invoking SQLCMD for each of the database files that you want to run.MyDatabase_backup_script.sql==========================DECLARE @fn nvarchar(256),@dbname nvarchar(50),@stmt nvarchar(4000),@path nvarchar(4000)SET @dbname = 'MyDatabase'SET @path = 'c:\SQLBackups\' + @dbname + '\'SET @fn = @path  + @dbname + '_backup_' +CONVERT(nchar(8),getdate(), 112) +right(N'0' + rtrim(CONVERT(nchar(2), datepart(hh, getdate()))), 2) +right(N'0' + rtrim(CONVERT(nchar(2), datepart(mi, getdate()))), 2) +N'.bak'--SELECT @fnSET @stmt = 'BACKUP DATABASE '+ QUOTENAME(@dbname, '[') + ' to disk= ''' + @fn + ''''--SELECT @stmtEXEC (@stmt)Database_backups.bat==========================sqlcmd -S (local)\SQLEXPRESS -E -i C:\SQLEE_Backups\MyDatabase_backup_script.sql -o C:\SQLBackupLogs\MyDatabase_backuplog.txtHave one of these lines for each database to back up, then just schedule the .bat file to run every night, say at 1am.The (local) part runs on the local machine, where the batch file is ran.  This could be changed to the specific server or pc name if needed.The -o text file is the output log file of the run.  It will show any errors if it encounters any.  I would keep the name in a format that will just overwrite itself so you don't have to worry about multiple versions to clean up.  Note that this will be an issue with the database backups, since the script backs it up to a file name with a date stamp on it.Here is an example of a .sql script to do a tranlog backup.  Again, just have a .sql file for each database that you need to do tranlog backups for, and put them in a separate .bat file and set to run multiple times per day.Tranlog backup script==================================DECLARE @fn nvarchar(256),@dbname nvarchar(50),@stmt nvarchar(4000),@path nvarchar(4000)SET @dbname = 'MyDatabase'SET @path = 'c:\SQLBackups\' + @dbname + '\tlogs\'SET @fn = @path  + @dbname + '_backup_' +CONVERT(nchar(8),getdate(), 112) +right(N'0' + rtrim(CONVERT(nchar(2), datepart(hh, getdate()))), 2) +right(N'0' + rtrim(CONVERT(nchar(2), datepart(mi, getdate()))), 2) +N'.trn'--SELECT @fnSET @stmt = 'BACKUP LOG '+ QUOTENAME(@dbname, '[') + ' to disk= ''' + @fn + ''''--SELECT @stmtEXEC (@stmt)Hope it helps.</description><pubDate>Fri, 18 Jan 2013 06:54:59 GMT</pubDate><dc:creator>vikingDBA</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Another useful free tool is SQL Backup Master.[url=http://www.sqlbackupmaster.com/]http://www.sqlbackupmaster.com/[/url]</description><pubDate>Thu, 17 Jan 2013 07:42:15 GMT</pubDate><dc:creator>Todd Beller</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>You can also try this GUI tool [url=http://www.sqlbackupandftp.com]SQL Backup and FTP[/url] which lets you schedule your backups. It is very simple to use and it's free :-)</description><pubDate>Tue, 05 Jul 2011 08:00:11 GMT</pubDate><dc:creator>AlexGreen</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Thanks so much...!! I deeply appreciate your help..!! Have a great day..!!</description><pubDate>Tue, 02 Nov 2010 07:35:21 GMT</pubDate><dc:creator>kgrady</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Take a look at this:[url]http://www.sqldbatips.com/showarticle.asp?ID=27[/url]</description><pubDate>Tue, 02 Nov 2010 07:29:55 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>Do you mean like a Batch(.bat) file to run...??? Is there an example anywhere..?? Thank you..!</description><pubDate>Tue, 02 Nov 2010 07:20:19 GMT</pubDate><dc:creator>kgrady</dc:creator></item><item><title>RE: SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>With SQLExpress you don't have SQLAgent to run backups. You have to manually set up a Windows Scheduled Task to run a backup command.A simple filesystem backup won't help in case you need to restore a database: you have to backup the database, not its files.</description><pubDate>Tue, 02 Nov 2010 07:12:20 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>SQL Express Backup</title><link>http://www.sqlservercentral.com/Forums/Topic1014439-24-1.aspx</link><description>I'm new to SQL and we have an SQLExpress database that we need to backup on a nightly basis. Is there a backup process with SQLExpress or will the Windows Server Backup process include the database if we point it to SQL location..?? Thank you..!!</description><pubDate>Tue, 02 Nov 2010 07:05:24 GMT</pubDate><dc:creator>kgrady</dc:creator></item></channel></rss>