How can we help you today? How can we help you today?
mgjernes
I have been having a similar issue with the Latest_All switch on SQLBackup 6.4.0.56. In my case, the latest full backup would restore correctly but then the process would hang indefinitely, never starting the subsequent differential and/or log restores. I downloaded the patch listed in this thread and now I get a different issue. The full restore succeeds, but then any subsequent differential restores fail with the following errors: SQL error 5069: ALTER DATABASE statement failed. SQL error 5052: ALTER DATABASE is not permitted while a database is in the Restoring state. I get this even if I use a full and differential backup generated from the same DB on the same server immediately prior to the restore attempt, as per the script below: EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1536_Full.sqb] WITH CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1536_Diff.sqb] WITH DIFFERENTIAL, CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [E:\Temp\AMRSQLRepl_FMP_20100707_1537_Log.sqb] WITH CHECKSUM, COMPRESSION=4, KEYSIZE=128, PASSWORD=[pwd], VERIFY"' GO EXEC master..sqlbackup '-SQL "RESTORE DATABASE [FMP] FROM DISK = [E:\Temp\AMRSQLRepl_FMP*.sqb] LATEST_ALL WITH DISCONNECT_EXISTING, PASSWORD=[pwd], REPLACE"' GO All three backup stages completed normally, as did the full restore stage. SQL server version is 9.0.4053. Script run under the "sa" account. Suggestions?? / comments
I have been having a similar issue with the Latest_All switch on SQLBackup 6.4.0.56. In my case, the latest full backup would restore correctly but then the process would hang indefinitely, never ...
0 votes
Well, by the time I finished my other tasks and got back to this, I could not reproduce this error either. I suspect another, stuck backup/restore may have been interfering. However, now the LATEST_ALL (6.4.0.1001) only restores the latest FULL and DIFFERENTIAL backups but not the LOG backups. Here is the revised script and the output from same. I get the same restore results using the command line (which puts version 6.4.0.1001 in the output, not .56). I have to run a separate log restore to get the test DB back on line (it stays in the restoring state after the differential). If I omit the test, differential backup and only use a full plus log backups in the test script then only the full backup is restored. ---- Test SQL Script ---- USE MASTER GO SET NOCOUNT ON GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [<auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO select * INTO FMP.dbo.PFMATemp from FMP.dbo.PFMAArea GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' --- This LOG backup should be ignored by Latest_All due to the following DIFF. GO SELECT * INTO FMP.dbo.PFMATemp10 FROM FMP.dbo.PFMAArea WHERE [PFMAArea]='10' GO EXEC master..sqlbackup '-SQL "BACKUP DATABASE [FMP] To DISK = [<auto>] WITH DIFFERENTIAL, CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO SELECT * INTO FMP.dbo.PFMATemp20 FROM FMP.dbo.PFMAArea WHERE [PFMAArea]='20' GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO DROP TABLE FMP.dbo.PFMATemp10 DROP TABLE FMP.dbo.PFMATemp20 DROP TABLE FMP.dbo.PFMATemp GO EXEC master..sqlbackup '-SQL "BACKUP LOG [FMP] To DISK = [<Auto>] WITH CHECKSUM, COMPRESSION=2, KEYSIZE=128, PASSWORD=[TestPwd?!?!], VERIFY"' GO EXEC master..sqlbackup '-SQL "RESTORE DATABASE [FMP] FROM DISK = [C:\temp\SQLLocalBackup\*FMP*.sqb] LATEST_ALL WITH DISCONNECT_EXISTING, PASSWORD=[TestPwd?!?!], REPLACE"' GO USE FMP GO ---- results of test script ---- SQL Backup v6.4.0.56 Backing up FMP (full database) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb Database size : 145.000 MB Compressed data size: 466.500 KB Compression rate : 99.69% Processed 392 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 2 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP DATABASE successfully processed 394 pages in 0.255 seconds (12.629 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb Backup data size : 640.000 KB Compressed data size: 21.000 KB Compression rate : 96.72% Processed 8 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 8 pages in 0.025 seconds (2.314 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111058_LOG.sqb SQL Backup v6.4.0.56 Backing up FMP (differential database) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb Backup data size : 2.688 MB Compressed data size: 186.000 KB Compression rate : 93.24% Processed 144 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 5 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP DATABASE WITH DIFFERENTIAL successfully processed 149 pages in 0.134 seconds (9.066 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb Backup data size : 640.000 KB Compressed data size: 17.500 KB Compression rate : 97.27% Processed 7 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 7 pages in 0.020 seconds (2.560 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111105_LOG.sqb SQL Backup v6.4.0.56 Backing up FMP (transaction log) to: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb Backup data size : 640.000 KB Compressed data size: 14.000 KB Compression rate : 97.81% Processed 3 pages for database 'FMP', file 'FMP_log' on file 1. BACKUP LOG successfully processed 3 pages in 0.026 seconds (0.689 MB/sec). Verifying files: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb The backup set on file 1 is valid. SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 filename001 C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111108_LOG.sqb SQL Backup v6.4.0.56 Restoring FMP (database) from: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111055_FULL.sqb Processed 392 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 2 pages for database 'FMP', file 'FMP_log' on file 1. RESTORE DATABASE successfully processed 394 pages in 1.445 seconds (2.228 MB/sec). Restoring FMP (database) from: C:\temp\SQLLocalBackup\AMRSQLREPL_(local)_FMP_20100709_111103_DIFF.sqb Processed 144 pages for database 'FMP', file 'FMP_Data' on file 1. Processed 5 pages for database 'FMP', file 'FMP_log' on file 1. RESTORE DATABASE successfully processed 149 pages in 1.528 seconds (0.795 MB/sec). SQL Backup process ended. name value exitcode 0 sqlerrorcode 0 Msg 927, Level 14, State 2, Line 2 Database 'FMP' cannot be opened. It is in the middle of a restore. / comments
Well, by the time I finished my other tasks and got back to this, I could not reproduce this error either. I suspect another, stuck backup/restore may have been interfering. However, now the LATE...
0 votes