<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xml:base="http://www.red-gate.com/MessageBoard/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Red Gate forums: SQL Backup 7</title>
 <link>http://www.red-gate.com/MessageBoard/</link>
 <description>Product Support and Discussion</description>
 <language>en</language>
 <copyright>Copyright Red Gate Software Ltd</copyright>
 <managingEditor>internalsupport@red-gate.com</managingEditor>
 <webMaster>internalsupport@red-gate.com</webMaster>
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
 <ttl>60</ttl>
 <lastBuildDate>Fri, 24 May 2013 20:21:21 GMT</lastBuildDate>
 <pubDate>Fri, 24 May 2013 20:21:21 GMT</pubDate>
 <image>
  <url>http://www.red-gate.com/messageboard/templates/subRed/images/logo_phpBB.gif</url>
  <title>Red Gate forums: SQL Backup 7</title>
  <link>http://www.red-gate.com/MessageBoard/</link>
 </image>
 <item>
  <title>RE: Error 880: BACKUP DATABASE permission denied</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=62101#62101</link>
  <description>Could you please post the last SQL command, as logged by Profiler, when you run the backup via the sys_Backup procedure?
&lt;br /&gt;

&lt;br /&gt;
Best guess would be that the SETUSER function is raising that error.  What happens if you run the 
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;SETUSER 'fditbackup' &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
when logged on using the same account that the SQL Backup Agent service uses?</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17220</comments>
  <dc:creator>petey</dc:creator>
  <pubDate>Thu, 23 May 2013 02:27:52 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=62101#62101</guid>
 </item>
 <item>
  <title>RE: SQL2012 AlwaysOn Availability Groups and SQLBackup</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=62083#62083</link>
  <description>What I've done on our Always On Availability groups is to modify our 'standard' Backup stored procedure to determine if the database is a member of the Availability group and if it is on the replica do a COPY Only Backup. (We don't back up on the 'live' replica . . . one benefit of the Always On Feature is to be able to take backups from one of the replicas). Our databases are of a reasonable size (~150GB) and backup times are very reasonable.
&lt;br /&gt;

&lt;br /&gt;
Of course actually creating the replica in the first place takes a bit of time.
&lt;br /&gt;

&lt;br /&gt;
What's good for us is that we have 3 SQL servers with several availability groups, and independent Databases, and this approach ensures that all the databases are backed up. The only issue is collecting together all the Full DIff and TLOG backups in the backup chain if you have to do a restore . . . Hence a COPY_TO to a common network location.
&lt;br /&gt;

&lt;br /&gt;
Writing your own Backup Stored procedure gives you a lot more flexibility to use SQL Backup as a tool to ensure your data is protected, rather than relying on the required functionality being added into the GUI</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=16710</comments>
  <dc:creator>Tony Barnsley</dc:creator>
  <pubDate>Wed, 22 May 2013 12:47:19 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=62083#62083</guid>
 </item>
 <item>
  <title>Error 880: BACKUP DATABASE permission denied</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=62079#62079</link>
  <description>Sorry to dig this old chestnut up again, but I have just had the need to allow a domain user to back up one database on one of our server, and am getting this error message
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Error 880&amp;#58; BACKUP DATABASE permission denied in database&amp;#58; &amp;#40;AIMS_AdviceLink&amp;#41; 
&lt;br /&gt;

&lt;br /&gt;
SQL error 4604&amp;#58; There is no such user or group fditbackup'.
&lt;br /&gt;

&lt;br /&gt;
SQL Backup exit code&amp;#58; 880
&lt;br /&gt;
SQL error code&amp;#58; 4604&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
The user fditbackup has been granted a login and a user created in the relevant database, and is a member of the db_backupoperator role. I tested that the set up was working by running a standard SQL Server Backup command, with the results as below
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;BACKUP DATABASE AIMS_AdviceLink TO DISK = 'D&amp;#58;\Backup\AIMS_AdviceLink\FULL_AMIS_AdviceLink.BAK
&lt;br /&gt;

&lt;br /&gt;
Processed 12168 pages for database 'AIMS_AdviceLink', file 'AIMS_AdviceLink' on file 1.
&lt;br /&gt;
Processed 1 pages for database 'AIMS_AdviceLink', file 'AIMS_AdviceLink_log' on file 1.
&lt;br /&gt;
BACKUP DATABASE successfully processed 12169 pages in 7.671 seconds &amp;#40;12.994 MB/sec&amp;#41;.
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
So as far as SQL Server is concerned the user is set up correctly to backup the database, the issue comes when I try and execute my standard database backup stored procedure, which generates the following SQL Backup Statement and then executes it
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;-SQL &amp;quot;BACKUP DATABASE &amp;#91;AIMS_AdviceLink&amp;#93; TO DISK = 'D&amp;#58;\Backup\AIMS_AdviceLink\FULL_AIMS_AdviceLink_201305220935.SQB' WITH INIT , THREADCOUNT = 3 , COMPRESSION = 3 , ERASEFILES = 2&amp;quot;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
This stored procedure works fine when executed in Query analyser logged in as the fditbackup user, so far everything is going well, all We have to do now is put it into a command file so that our Tech team can execute it whenever they Upgrade the system rather than bother me. . .  The statement is
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;ECHO OFF
&lt;br /&gt;
CLS
&lt;br /&gt;

&lt;br /&gt;
SET RunDate=%DATE&amp;#58;~6,4%%DATE&amp;#58;~3,2%%DATE&amp;#58;~0,2%
&lt;br /&gt;
SET RunTime=%TIME&amp;#58;~0,2%%TIME&amp;#58;~3,2%
&lt;br /&gt;

&lt;br /&gt;
ECHO AIMS Advice Link Backup Started On %RUNDATE% AT %RunTime%
&lt;br /&gt;
CD C&amp;#58;\AIMS.Backup
&lt;br /&gt;

&lt;br /&gt;
isql -S tcp&amp;#58;SQLAPPS -e -w 2000 -d AIMS_AdviceLink -E -Q &amp;quot;EXECUTE Admin.dbo.sys_Backup @Path = 'D&amp;#58;\Backup\' , @JustDB = 'AIMS_AdviceLink', @Retention = 3, @ForceFull = 1, @MSBackup = 0, @Encrypt = 0, @ThreadCount = 3, @Debug=0&amp;quot;
&lt;br /&gt;

&lt;br /&gt;
CD C&amp;#58;\AIMS.Backup
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Unfortunately this is where the 
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Error 880&amp;#58; BACKUP DATABASE permission denied in database&amp;#58; &amp;#40;AIMS_AdviceLink&amp;#41; 
&lt;br /&gt;

&lt;br /&gt;
SQL error 4604&amp;#58; There is no such user or group fditbackup'.
&lt;br /&gt;

&lt;br /&gt;
SQL Backup exit code&amp;#58; 880
&lt;br /&gt;
SQL error code&amp;#58; 4604&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
Occurs. It must be a permissions issue somewhere along the line. I did initially think that it was a problem with isql , but running the Standard SQL Bacuk command above in ISQL worked fine.
&lt;br /&gt;

&lt;br /&gt;
I have extracted the Script used to Check Permissions using SQL Profiler, but when I run that in Query Analyser (As the User fditbackup) it returns HasPermissions  = 1
&lt;br /&gt;

&lt;br /&gt;
One last thought I had was that it could be a database owner problem so I made fditbackup owner of the database but that changed nothing.
&lt;br /&gt;

&lt;br /&gt;
I can't run a GUI based backup to test it,as that requires membership of Sysadmin server role which is precisely what I am trying to avoid.
&lt;br /&gt;

&lt;br /&gt;
Nothing in the SQL Server logs or event logs to indicate any issue.
&lt;br /&gt;

&lt;br /&gt;
Windows Version 2003, SQLServer Version 2000 SP4, SQL Backup Server  COmponents 5.3.0.178, SQL Backup GUI 7.3.23
&lt;br /&gt;

&lt;br /&gt;
I suppose I could upgrade the Server Components to Version 7.2.3.12, but as we are decommissioning this server soon and moving everything to a SQL 2008 Server with 7.2.3.12 installed I'm trying to avoid that.
&lt;br /&gt;

&lt;br /&gt;
Any Further Ideas? I could always switch Permissions Check off, but I feel that that is a workaround of a bug rather than a fix . . .I need to know that it will be fixed when we move the databases to the new server.
&lt;br /&gt;

&lt;br /&gt;
Any light that can be shed on this would be a great help</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17220</comments>
  <dc:creator>Tony Barnsley</dc:creator>
  <pubDate>Wed, 22 May 2013 12:03:08 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=62079#62079</guid>
 </item>
 <item>
  <title>RE: 7.3.0.383 Issue: Refreshing Connection for 20m &amp;amp; counting</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=62001#62001</link>
  <description>Has Red-Gate looked into performance tuning sqbdata? Activity History still takes forever to populate--GT 5 minutes for us on a server that contains 1 year of history.
&lt;br /&gt;

&lt;br /&gt;
Customers should not be forced to delete important backup history as a workaround for a poorly performing SQL Backup process.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=16733</comments>
  <dc:creator>mglenn</dc:creator>
  <pubDate>Fri, 17 May 2013 13:51:54 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=62001#62001</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61976#61976</link>
  <description>Thanks Peter. I am going to change my process to restore with norecovery by default, and then recover to standby mode only in the end. That should bring down the total restore time. Also, I looked at the VLFs and resized the log file. Will watch over next few days to see the results.
&lt;br /&gt;

&lt;br /&gt;
Will update later. Thanks for all your help.
&lt;br /&gt;

&lt;br /&gt;
Ajay</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>agarg</dc:creator>
  <pubDate>Thu, 16 May 2013 17:01:56 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61976#61976</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61961#61961</link>
  <description>The longest process is this entry:
&lt;br /&gt;

&lt;br /&gt;
2013-05-15 11:06:02.21 spid61 Restore-Redo begins on database ODHR 
&lt;br /&gt;

&lt;br /&gt;
and this post explains what is actually done during this process:
&lt;br /&gt;

&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms191455&quot; target=&quot;_blank&quot;&gt;http://msdn.microsoft.com/en-us/library/ms191455&lt;/a&gt;(v=sql.105).aspx
&lt;br /&gt;

&lt;br /&gt;
The Restore-Redo process might just be taking a reasonable duration, or it might actually be slow, depending on your setup.  If you think it should complete faster, one option may be to look at the virtual log files (VLFs) of your database (see &lt;a href=&quot;http://adventuresinsql.com/?p=12&quot; target=&quot;_blank&quot;&gt;http://adventuresinsql.com/?p=12&lt;/a&gt;).</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>petey</dc:creator>
  <pubDate>Thu, 16 May 2013 02:14:19 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61961#61961</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61956#61956</link>
  <description>Don't understand how to upload an image. So, here is the log copy/pasted from ERRORLOG:
&lt;br /&gt;

&lt;br /&gt;
2013-05-15 11:06:01.90 spid61      RestoreLog: Database ODHR
&lt;br /&gt;
2013-05-15 11:06:01.90 spid61      X-locking database: ODHR
&lt;br /&gt;
2013-05-15 11:06:01.90 spid61      Opening backup set
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Restore: Configuration section loaded
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Restore: Backup set is open
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Restore: Planning begins
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Dismounting FullText catalogs
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Restore: Planning complete
&lt;br /&gt;
2013-05-15 11:06:01.94 spid61      Restore: BeginRestore (offline) on ODHR
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: PreparingContainers
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: Containers are ready
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: Restoring backup set
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: Transferring data to ODHR
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: Waiting for log zero on ODHR
&lt;br /&gt;
2013-05-15 11:06:02.00 spid61      Restore: LogZero complete
&lt;br /&gt;
2013-05-15 11:06:02.21 spid61      FileHandleCache: 0 files opened. CacheSize: 48
&lt;br /&gt;
2013-05-15 11:06:02.21 spid61      Restore: Data transfer complete on ODHR
&lt;br /&gt;
2013-05-15 11:06:02.21 spid61      Restore: Backup set restored
&lt;br /&gt;
2013-05-15 11:06:02.21 spid61      Restore-Redo begins on database ODHR
&lt;br /&gt;
2013-05-15 11:06:18.84 spid61      Rollforward complete on database ODHR
&lt;br /&gt;
2013-05-15 11:06:18.84 spid61      Restore: Done with fixups
&lt;br /&gt;
2013-05-15 11:06:18.84 spid61      Restore: Writing history records
&lt;br /&gt;
2013-05-15 11:06:18.84 Backup      Log was restored. Database: ODHR, creation date(time): 2013/02/28(19:47:47), first LSN: 1440831:20705:1, last LSN: 1440832:29672:1, number of dump devices: 4, device information: (FILE=1, TYPE=VIRTUAL_DEVICE: {'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC90', 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9001', 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9002', 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9003'}). This is an informational message. No user action is required.
&lt;br /&gt;
2013-05-15 11:06:18.84 spid61      Writing backup history records
&lt;br /&gt;
2013-05-15 11:06:18.86 spid61      Restore: Done with MSDB maintenance
&lt;br /&gt;
2013-05-15 11:06:18.86 spid61      RestoreLog: Finished</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>agarg</dc:creator>
  <pubDate>Wed, 15 May 2013 16:42:22 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61956#61956</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61954#61954</link>
  <description>Thanks Peter for sticking with me. So, I set the trace flags on and reran the restore. Here is the typical log file. Also see the attached image from sql server error logs for the activity while this particular trn log was being restored. 
&lt;br /&gt;

&lt;br /&gt;
SQL Backup log file 7.3.0.57
&lt;br /&gt;
 
&lt;br /&gt;
-SQL &amp;quot;RESTORE LOG ODHR FROM DISK = 'Z:\WrkFolder\ODHR_Log201305131409.trn' WITH DISCONNECT_EXISTING, NORECOVERY &amp;quot;
&lt;br /&gt;
 
&lt;br /&gt;
-----------------------  PROCESSES COMPLETED SUCCESSFULLY   --------------------
&lt;br /&gt;
 
&lt;br /&gt;
5/15/2013 11:06:01 AM: Restoring ODHR (transaction logs) from: 
&lt;br /&gt;
5/15/2013 11:06:01 AM:   Z:\WrkFolder\ODHR_Log201305131409.trn
&lt;br /&gt;
 
&lt;br /&gt;
5/15/2013 11:06:01 AM: RESTORE LOG [ODHR]  FROM 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC90', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9001', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9002', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_40E17D6B-2515-4AA7-89DC-E17B6C50AC9003' 
&lt;br /&gt;
WITH BUFFERCOUNT = 24, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576 , NORECOVERY
&lt;br /&gt;
 
&lt;br /&gt;
5/15/2013 11:06:18 AM: Processed 0 pages for database 'ODHR', file 'ownersSQL_dat' on file 1.
&lt;br /&gt;
5/15/2013 11:06:18 AM: Processed 9400 pages for database 'ODHR', file 'ownersSQL_log' on file 1.
&lt;br /&gt;
5/15/2013 11:06:18 AM: RESTORE LOG successfully processed 9400 pages in 0.204 seconds (359.966 MB/sec).
&lt;br /&gt;
 
&lt;br /&gt;
5/15/2013 11:06:18 AM: SQL Backup process ended.
&lt;br /&gt;
 
&lt;br /&gt;

&lt;br /&gt;
[img]C:\temp\FastStone\ODHRRestore.jpg[/img]</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>agarg</dc:creator>
  <pubDate>Wed, 15 May 2013 16:35:45 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61954#61954</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61931#61931</link>
  <description>There is a trace flag you can use to log the restore process in detail.  Try this:
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;DBCC TRACEON &amp;#40;3004, 3605, -1&amp;#41;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
SQL Server will then log the additional details to the error log.  Do the details explain why the restore process is taking longer than the reported duration?</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>petey</dc:creator>
  <pubDate>Wed, 15 May 2013 00:39:44 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61931#61931</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61923#61923</link>
  <description>Thanks Peter. Restoring with norecovery has indeed brought the restore times down, but not to the level I would have expected. Look at this log for example. Restore log line tells that it took 0.196 seconds, yet the total duration is 20 seconds. What could be the reason?
&lt;br /&gt;

&lt;br /&gt;
SQL Backup log file 7.3.0.57
&lt;br /&gt;

&lt;br /&gt;
-SQL &amp;quot;RESTORE LOG ODHR FROM DISK = 'Z:\WrkFolder\ODHR_Log201305132240.trn' WITH DISCONNECT_EXISTING, NORECOVERY &amp;quot;
&lt;br /&gt;

&lt;br /&gt;
-----------------------  PROCESSES COMPLETED SUCCESSFULLY   --------------------
&lt;br /&gt;

&lt;br /&gt;
5/14/2013 12:10:07 PM: Restoring ODHR (transaction logs) from: 
&lt;br /&gt;
5/14/2013 12:10:07 PM:   Z:\WrkFolder\ODHR_Log201305132240.trn
&lt;br /&gt;

&lt;br /&gt;
5/14/2013 12:10:07 PM: RESTORE LOG [ODHR]  FROM 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_6204C411-C9A0-4561-BB51-22925D632DFC', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_6204C411-C9A0-4561-BB51-22925D632DFC01', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_6204C411-C9A0-4561-BB51-22925D632DFC02', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_6204C411-C9A0-4561-BB51-22925D632DFC03' 
&lt;br /&gt;
WITH BUFFERCOUNT = 24, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576 , NORECOVERY
&lt;br /&gt;

&lt;br /&gt;
5/14/2013 12:10:27 PM: Processed 0 pages for database 'ODHR', file 'ownersSQL_dat' on file 1.
&lt;br /&gt;
5/14/2013 12:10:27 PM: Processed 9091 pages for database 'ODHR', file 'ownersSQL_log' on file 1.
&lt;br /&gt;
5/14/2013 12:10:27 PM: RESTORE LOG successfully processed 9091 pages in 0.196 seconds (362.337 MB/sec).
&lt;br /&gt;

&lt;br /&gt;
5/14/2013 12:10:27 PM: SQL Backup process ended.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>agarg</dc:creator>
  <pubDate>Tue, 14 May 2013 18:07:08 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61923#61923</guid>
 </item>
 <item>
  <title>Restoring to a different SQL Server</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61917#61917</link>
  <description>Hi,
&lt;br /&gt;
Everything I read seems to say this is possible through the GUI, but I cannot see the option to do it.  
&lt;br /&gt;
I am trying to restore a database taken on ServerA, via SQL Backup, to ServerB using SQL Backup Gui.  Lets say to allow a test server to be created.
&lt;br /&gt;

&lt;br /&gt;
ServerA is taking regular daily backups created using the GUI Tool.
&lt;br /&gt;
I have added ServerB to the GUI and installed the server components and licensed it.
&lt;br /&gt;
I right click on ServerB, select restore.  I then select &amp;quot;browse for backup files to restore&amp;quot; and select ServerA as the backup to restore. 
&lt;br /&gt;
I then click on Add files and browse to my central backup store and select the last full backup for ServerA.
&lt;br /&gt;
I then click Next, but shown a screen &amp;quot;step 2 of 4&amp;quot;, which shows the Destination Database is set to ServerA - the original SQL Server and I cannot change this. I only have the options to overwrite the existing database or create a new one. I tested this and created a new one and it does indeed write the backup to the original server.
&lt;br /&gt;

&lt;br /&gt;
This article &lt;a href=&quot;http://www.red-gate.com/supportcenter/content/knowledgebase/SQL_Backup/KB200710000174&quot; target=&quot;_blank&quot;&gt;http://www.red-gate.com/supportcenter/content/knowledgebase/SQL_Backup/KB200710000174&lt;/a&gt;
&lt;br /&gt;
explains this process as I have, but no where does it say you can restore the database to a different sql server, despite it's title!
&lt;br /&gt;

&lt;br /&gt;
Any help would be great.
&lt;br /&gt;

&lt;br /&gt;
Thanks.
&lt;br /&gt;

&lt;br /&gt;
*******EDIT***
&lt;br /&gt;
I've just realised my mistake with this and now have it working.  It's not clear on the screens, but the first screen, I should leave set at Server B, and then simply add files from ServerA. On the &amp;quot;step 1 of 4&amp;quot; it says &amp;quot;Backups to restore SQL Server:...&amp;quot; And this drop down should be set to the destination SQL Server, not as it implies, the source SQL Server. I have this working now.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17131</comments>
  <dc:creator>maddave</dc:creator>
  <pubDate>Tue, 14 May 2013 14:41:27 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61917#61917</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61895#61895</link>
  <description>The 313.414 seconds is the time taken to read and restore the backup data.  The rest of the time would be used to re-apply the uncommitted transactions from the redo log prior to the restore process, and also to undo any open transactions from the current restore process, and write them to the redo log.
&lt;br /&gt;

&lt;br /&gt;
If you want to confirm that this is indeed the case, try restoring a couple of  trx logs with the NORECOVERY option.  The total duration taken should be close to what SQL Server reports on the 'RESTORE LOG successfully processed...' line.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>petey</dc:creator>
  <pubDate>Tue, 14 May 2013 01:05:24 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61895#61895</guid>
 </item>
 <item>
  <title>RE: How to generate report on database restore durations</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61893#61893</link>
  <description>I prefer writing my own reports - thanks for the tip. This gives me all the information I need. I need a clarification though. The following is the output from a log file. As you can see, the restore started at 9:14:18pm and finished at 9:36:59pm - that is in 22 min 36 sec. What does 313.414 seconds (in the RESTORE LOG line) signify here then?
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
SQL Backup log file 7.3.0.57
&lt;br /&gt;

&lt;br /&gt;
-SQL &amp;quot;RESTORE LOG DW FROM DISK = 'T:\MSSQL\TLogs\DW_Log201305111456.trn' WITH DISCONNECT_EXISTING, STANDBY = 'T:\MSSQL\TLogs\DW_undoLog.log' &amp;quot;
&lt;br /&gt;

&lt;br /&gt;
-----------------------  PROCESSES COMPLETED SUCCESSFULLY   --------------------
&lt;br /&gt;

&lt;br /&gt;
5/11/2013 9:14:18 PM: Restoring DW (transaction logs) on SQL042_1 instance from: 
&lt;br /&gt;
5/11/2013 9:14:18 PM:   T:\MSSQL\TLogs\DW_Log201305111456.trn
&lt;br /&gt;

&lt;br /&gt;
5/11/2013 9:14:19 PM: ALTER DATABASE [DW] SET ONLINE  RESTORE LOG [DW]  FROM 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_F758110E-23D1-46DC-B4A7-6422BCBC8113', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_F758110E-23D1-46DC-B4A7-6422BCBC811301', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_F758110E-23D1-46DC-B4A7-6422BCBC811302', 
&lt;br /&gt;
VIRTUAL_DEVICE = 'SQLBACKUP_F758110E-23D1-46DC-B4A7-6422BCBC811303' 
&lt;br /&gt;
WITH BUFFERCOUNT = 24, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576 , STANDBY = N'T:\MSSQL\TLogs\DW_undoLog.log'
&lt;br /&gt;

&lt;br /&gt;
5/11/2013 9:36:59 PM: Processed 0 pages for database 'DW', file 'DW' on file 1.
&lt;br /&gt;
5/11/2013 9:36:59 PM: Processed 0 pages for database 'DW', file 'DW2' on file 1.
&lt;br /&gt;
5/11/2013 9:36:59 PM: Processed 0 pages for database 'DW', file 'DW3' on file 1.
&lt;br /&gt;
5/11/2013 9:36:59 PM: Processed 22082859 pages for database 'DW', file 'DW_log' on file 1.
&lt;br /&gt;
5/11/2013 9:36:59 PM: RESTORE LOG successfully processed 22082859 pages in 313.414 seconds (550.461 MB/sec).
&lt;br /&gt;

&lt;br /&gt;
5/11/2013 9:36:59 PM: SQL Backup process ended.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17080</comments>
  <dc:creator>agarg</dc:creator>
  <pubDate>Mon, 13 May 2013 20:46:54 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61893#61893</guid>
 </item>
 <item>
  <title>RE: Click on server name, green circle spins forever</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61886#61886</link>
  <description>In case anybody else comes across this thread, the solution that actually worked for me was to select the Delete Old Backup History in the Server Options dialog (right-click the server name to access).  Once I selected that and set a number of days, it took a lot less time for Redgate to show the timeline and activity history correctly.</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=15430</comments>
  <dc:creator>reinisb</dc:creator>
  <pubDate>Mon, 13 May 2013 14:30:45 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61886#61886</guid>
 </item>
 <item>
  <title>RE: Centrally store all server information</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=61875#61875</link>
  <description>Thank you for your forum post.
&lt;br /&gt;

&lt;br /&gt;
The GUI is configured per user on each machine.
&lt;br /&gt;

&lt;br /&gt;
The file that contains the information regarding the servers you have added to the GUI is located in this path:
&lt;br /&gt;

&lt;br /&gt;
C:\Users\&amp;lt;user name&amp;gt;\AppData\Roaming\Red Gate\SQL Backup
&lt;br /&gt;
The file is called &amp;quot;Servers.dat&amp;quot;.  If you copy this file from your local PC to the central server and paste into each users profile, you and colleagues will be able to share the original setup.
&lt;br /&gt;

&lt;br /&gt;
If you or a colleague makes a change on the central server to their version of GUI, this change will not be replicated to the other users &amp;quot;Servers.dat&amp;quot; file.
&lt;br /&gt;

&lt;br /&gt;
Many Thanks
&lt;br /&gt;
Eddie</description>
  <category>SQL Backup 7</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=17093</comments>
  <dc:creator>eddie davis</dc:creator>
  <pubDate>Mon, 13 May 2013 07:53:32 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=61875#61875</guid>
 </item>
</channel>
</rss>
