<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx</link><description>The default action when performing a backup is to append to the backup file yet the default action when restoring a backup is to restore just the first file. I constantly come across customer situations where they are puzzled that they seem to have lost</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx#45870</link><pubDate>Wed, 31 Oct 2012 05:41:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45870</guid><dc:creator>Ian Yates</dc:creator><description>&lt;p&gt;Good suggestion - this is a messy area. &amp;nbsp;I wrote a script, which needs a lot of refinement, to look in a folder for the latest full backup, then the latest diff backup, then all subsequent log backups.. &amp;nbsp;It was annoying enough getting the FILELISTONLY out of a backup file without having to deal with multiple backups within a single OS file. &amp;nbsp;Something which let you just specify a folder for the MOVE command without having to list each file would be nice &amp;nbsp; (I appreciate it's not all roses if you want database and log files on different drives, but for small sites that I deal with I never get that sort of luxury)&lt;/p&gt;
&lt;p&gt;I quite like the improvements in the GUI for restoration with SQL 2012 management studio though :)&lt;/p&gt;</description></item><item><title>re: Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx#45877</link><pubDate>Wed, 31 Oct 2012 12:12:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45877</guid><dc:creator>RichB</dc:creator><description>&lt;p&gt;Hmm, nice idea, but it would need to be fairly intelligent wouldn't it.&lt;/p&gt;
&lt;p&gt;Pick the last clean, full backup, the latest viable diff, then only subsequent logs. &amp;nbsp;Would still need the stopat clause, so all of this picking would need to be dependent on that datetime too.&lt;/p&gt;
&lt;p&gt;But why stop there, instead of/as well as parallel backup files, it should take a list of sequential backup files too - or fulls, diffs and logs in separate files, and all for the _right_ log sequence chain if you restore it elsewhere but back that up to the same file etc... &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The permutations of getting this right can be pretty complex - at a guess not really something MS would really want to support! &amp;nbsp;Cost benefit and all...&lt;/p&gt;</description></item><item><title>re: Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx#45903</link><pubDate>Fri, 02 Nov 2012 08:45:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45903</guid><dc:creator>Stephen Morris</dc:creator><description>&lt;p&gt;easiest to read the history from MSDB and drive it from there IMHO&lt;/p&gt;</description></item><item><title>re: Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx#46092</link><pubDate>Mon, 12 Nov 2012 01:02:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46092</guid><dc:creator>Greg Low</dc:creator><description>&lt;p&gt;Hi Stephen,&lt;/p&gt;
&lt;p&gt;That assumes though that it's on the same server that backed it up. It often isn't, so the entries aren't in msdb.&lt;/p&gt;
</description></item><item><title>re: Suggestion: ALLFILES option for RESTORE</title><link>http://www2.sqlblog.com/blogs/greg_low/archive/2012/10/31/suggestion-allfiles-option-for-restore.aspx#47725</link><pubDate>Thu, 14 Feb 2013 17:52:06 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47725</guid><dc:creator>Luke Campbell</dc:creator><description>&lt;p&gt;I've written a script similar to what Ian suggests in his post. &amp;nbsp;It's not pretty but does the job. &amp;nbsp;Basically imports the contents of FILELISTONLY into a temp table and generates the restore script using the move option to a specified location. &amp;nbsp;There are also a few good powershell scripts out there that accomplish the same task.&lt;/p&gt;</description></item></channel></rss>