- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- BackOffice Products
- >
- SQL Restore Errors
BackOffice Products
1760111
Members
4033
Online
108890
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2006 02:22 PM
тАО01-02-2006 02:22 PM
SQL Restore Errors
I have a little problem guys, any help will be very gratefull, here's the case:
I have these backup files :
- FullTLM_Full_25122005_0000.bak ( SQL Full Backup every 1 week )
- FullTLM_Diff_26122005_0030.bak until FullTLM_Diff_30122005_0030.bak ( SQL Differential Backup every 1 day )
- FullTLM_Log_25122005_0100.bak until FullTLM_Log_30122005_1100.bak ( SQL Log Backup every 2 hours )
I want to restore my database to 30 December 2005 at 09:00. I've run these sequence of restore :
------------------------------------------------------------------------------------------------
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Full_25122005_0000.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_26122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_27122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_28122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
---------------------------------------------------------
This sequence work perfectly, but when i run this query :
---------------------------------------------------------
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_29122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
----------------------------------------
error happened with this error message :
----------------------------------------
Server: Msg 3136, Level 16, State 1, Line 1
Cannot apply the backup on device 'D:\TestLog\FullTLM_Diff_29122005_0030.bak' to database 'fulltlm30'.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
------------------------------------------------------------------------------------------------------------------------------------
i also try to restore to date 30 december and receive same error message, and then i try to restore the log file, i run this query :
------------------------------------------------------------------------------------------------------------------------------------
restore log fulltlm30
from disk = 'D:\TestLog\FullTLM_Log_28122005_0100.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
...
...
... until
restore log fulltlm30
from disk = 'D:\TestLog\FullTLM_Log_30122005_0900.bak'
with recovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
-----------------------------
This sequence work perfectly.
All i want to know is the result between restoring each log until dec 30 09:00 has the same result with if I restore the
differential at dec 30 and then restore the log from dec 30 01:00 until dec 30 09:00. I also want to know why those errors happened.
Thank you very much
I have these backup files :
- FullTLM_Full_25122005_0000.bak ( SQL Full Backup every 1 week )
- FullTLM_Diff_26122005_0030.bak until FullTLM_Diff_30122005_0030.bak ( SQL Differential Backup every 1 day )
- FullTLM_Log_25122005_0100.bak until FullTLM_Log_30122005_1100.bak ( SQL Log Backup every 2 hours )
I want to restore my database to 30 December 2005 at 09:00. I've run these sequence of restore :
------------------------------------------------------------------------------------------------
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Full_25122005_0000.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_26122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_27122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_28122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
---------------------------------------------------------
This sequence work perfectly, but when i run this query :
---------------------------------------------------------
restore database fulltlm30
from disk = 'D:\TestLog\FullTLM_Diff_29122005_0030.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
----------------------------------------
error happened with this error message :
----------------------------------------
Server: Msg 3136, Level 16, State 1, Line 1
Cannot apply the backup on device 'D:\TestLog\FullTLM_Diff_29122005_0030.bak' to database 'fulltlm30'.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
------------------------------------------------------------------------------------------------------------------------------------
i also try to restore to date 30 december and receive same error message, and then i try to restore the log file, i run this query :
------------------------------------------------------------------------------------------------------------------------------------
restore log fulltlm30
from disk = 'D:\TestLog\FullTLM_Log_28122005_0100.bak'
with norecovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
...
...
... until
restore log fulltlm30
from disk = 'D:\TestLog\FullTLM_Log_30122005_0900.bak'
with recovery,
move 'FullTLM_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30.mdf',
move 'FullTLM_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\FullTLM30_Log.mdf'
go
-----------------------------
This sequence work perfectly.
All i want to know is the result between restoring each log until dec 30 09:00 has the same result with if I restore the
differential at dec 30 and then restore the log from dec 30 01:00 until dec 30 09:00. I also want to know why those errors happened.
Thank you very much
- Tags:
- SQL
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 12:14 PM
тАО01-05-2006 12:14 PM
Re: SQL Restore Errors
This properly belongs in a Microsoft / SQL forum - moving the question.
Omniback and NT problems? double check name resolution, DNS/HOSTS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 10:39 PM
тАО01-05-2006 10:39 PM
Re: SQL Restore Errors
Do restore of differential backup from 30
december and then apply all transaction log backups from 30 december.
You don't need to restore 26,27,28,29 differential backups, because differential backup from 30 december contains all these backups.
Regarding error: did you see any errors in SQL logs files and in event viewer?
Which SQL version you use ?
december and then apply all transaction log backups from 30 december.
You don't need to restore 26,27,28,29 differential backups, because differential backup from 30 december contains all these backups.
Regarding error: did you see any errors in SQL logs files and in event viewer?
Which SQL version you use ?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP