﻿<?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 2005 / Backups  / backup all databases in SQL 2008 / 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, 23 May 2013 15:41:12 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>Try [url=http://www.sqlbackupmaster.com]SQL Backup Master[/url], which can back up all non-system databases at once. Basic edition is free.</description><pubDate>Mon, 28 Jan 2013 10:19:22 GMT</pubDate><dc:creator>Todd Beller</dc:creator></item><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>Ola Hallengren has a great script for that:[url]http://ola.hallengren.com/sql-server-backup.html[/url]No need to re-invent the wheel.</description><pubDate>Sun, 22 Jan 2012 14:48:18 GMT</pubDate><dc:creator>spaghettidba</dc:creator></item><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>Thanks a lot all. It works great.</description><pubDate>Fri, 20 Jan 2012 09:15:00 GMT</pubDate><dc:creator>espanolanthony</dc:creator></item><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>[quote][b]padhis (1/20/2012)[/b][hr][code="sql"]exec sp_msforeachdb 'if db_id(''?'')&amp;gt;4 backup database [?] to disk = ''C:\?.bak'' with init, compression;'[/code][/quote]Does the same thing but isn't support by Microsoft :-P</description><pubDate>Fri, 20 Jan 2012 09:06:41 GMT</pubDate><dc:creator>Robert Murphy UK1</dc:creator></item><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>[code="sql"]exec sp_msforeachdb 'if db_id(''?'')&amp;gt;4 backup database [?] to disk = ''C:\?.bak'' with init, compression;'[/code]</description><pubDate>Fri, 20 Jan 2012 08:56:29 GMT</pubDate><dc:creator>padhis</dc:creator></item><item><title>RE: backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>DECLARE @name VARCHAR(50) -- database name  DECLARE @path VARCHAR(256) -- path for backup files  DECLARE @fileName VARCHAR(256) -- filename for backup  DECLARE @fileDate VARCHAR(20) -- used for file name SET @path = 'C:\Backup\'  SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) DECLARE db_cursor CURSOR FOR  SELECT name FROM master.dbo.sysdatabases WHERE name NOT IN ('master','model','msdb','tempdb')  OPEN db_cursor   FETCH NEXT FROM db_cursor INTO @name   WHILE @@FETCH_STATUS = 0   BEGIN          SET @fileName = @path + @name + '_' + @fileDate + '.BAK'         BACKUP DATABASE @name TO DISK = @fileName  WITH COMPRESSION       FETCH NEXT FROM db_cursor INTO @name   END   CLOSE db_cursor   DEALLOCATE db_cursor</description><pubDate>Fri, 20 Jan 2012 08:27:53 GMT</pubDate><dc:creator>Robert Murphy UK1</dc:creator></item><item><title>backup all databases in SQL 2008</title><link>http://www.sqlservercentral.com/Forums/Topic1239476-357-1.aspx</link><description>Hi,  Need a script to compress and backup all the databases in sql 2008, except system databases. Please let me know if someone has it.Thanks.</description><pubDate>Fri, 20 Jan 2012 07:56:28 GMT</pubDate><dc:creator>espanolanthony</dc:creator></item></channel></rss>