SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Restore backup from SQL 2017 to SQL 2008


Restore backup from SQL 2017 to SQL 2008

Author
Message
Farik013
Farik013
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 105
Hi. There is a lot of post about my question, but I have little different problem. We have an SQL Server 2008 R2. And full backup taken from SSMS 2017. When I want to restore it on SQL 2008, there is an error. But I can restore it on 2017. It was 2 weeks ago and I want to restore this backup and differential to it. It takes diff without problems, but only full backup give an error "restore headeronly is terminating abnormally 3013 read failure on backup device". Because only that day backup was take manually via SSMS 2017.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)

Group: Administrators
Points: 594725 Visits: 21009
OK, SSMS doesn't matter. There also isn't an SSMS 2017. There are a few SSMS v17.x versions and some SSMS v16, but the tool is decoupled from the SQL Server instance version.

If you took a backup from a SQL Server 2008 R2 or earlier instance, you can restore it to the SQL Server 2008 R2 instance you have. SQL Server 2008 is different from SQL Server 2008 R2. One is v10, one is 10.5. They are not backwards compatible.

You can only restore to the same or higher level version.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)

Group: General Forum Members
Points: 385833 Visits: 42551
farik013 - Wednesday, September 12, 2018 7:36 AM
Hi. There is a lot of post about my question, but I have little different problem. We have an SQL Server 2008 R2. And full backup taken from SSMS 2017. When I want to restore it on SQL 2008, there is an error. But I can restore it on 2017. It was 2 weeks ago and I want to restore this backup and differential to it. It takes diff without problems, but only full backup give an error "restore headeronly is terminating abnormally 3013 read failure on backup device". Because only that day backup was take manually via SSMS 2017.

You will not be able to restore a SQL Server 2008 R2 database to SQL Server 2008. Although both are SQL Server 2008, the R2 version has a different disk structure than 2008. You could think of SQL Server 2008 R2 as SQL Server 2010.
The version of SSMS doesn't matter.


Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
jasona.work
jasona.work
SSC-Forever
SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)SSC-Forever (42K reputation)

Group: General Forum Members
Points: 42782 Visits: 16135
You're trying to restore a backup from a higher version of SQL Server (2008R2 / 10.50.XXXX) to a lower version of SQL Server (2008 / 10.0.XXXX) which can not be done. The version of SSMS you used to fire off the backup is immaterial, you'd be getting similar problems if you created the backup with SSMS 2008R2 or 2008.
SQLPirate
SQLPirate
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2181 Visits: 1555
You can't restore a backup from 2008 R2 to 2008 -it's only forward compatible, which is why you can restore it on a 2017 instance.
Farik013
Farik013
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 105
Sorry for my mistake. Both servers is SQL 2008 R2. And I checked, you are right. SSMS is not matter, I take backup vis SSMS 2017 and restore it on server 2018 R2 and it restored sucessfully. This error may be on corrupted backup file?
Steve Jones
Steve Jones
SSC Guru
SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)SSC Guru (594K reputation)

Group: Administrators
Points: 594725 Visits: 21009
It is entirely possible that the backup file was corrupted. A good reason to test restores periodically if not constantly.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Farik013
Farik013
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 105
Is there another way to restore database? Or how can I check corruption?
When I restore in SSMS 2008, it gives me error which I said before.
But when I restore in SSMS 2017 with connecting to server 2008 R2, it doesn't give me an error.
Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)SSC Guru (385K reputation)

Group: General Forum Members
Points: 385833 Visits: 42551
farik013 - Wednesday, September 12, 2018 12:56 PM
Is there another way to restore database? Or how can I check corruption?
When I restore in SSMS 2008, it gives me error which I said before.
But when I restore in SSMS 2017 with connecting to server 2008 R2, it doesn't give me an error.

Copy and paste the full error message you are getting. Also check the error log to see what it may be saying as well.


Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Farik013
Farik013
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 105
With sa user there is an error in error logs:

"Cannot open backup device "\\xxxxxxxx\xxxx.bak". Operating System Error 5 (failed to retrieve text for this error. Reason: 15105). (Microsoft.SQLServer.Smo)"

But when I want to restore with my system administrator user, there is an error:

Backup,Unknown,BackupIoRequest::ReportIoError: read failure on backup device '\\xxxxxxxx\xxxx.bak'. Operating system error 13(The data is invalid.).

I think other DBA take this backup manually from PROD with his own sysadmin account and in TEST sa password different. So it gives error with permission denied. And when I want to restore with my own sysadmin account it gives second error.
I dont understand, is there a problem with permission or file corrupt?

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search