Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I restore an msdb.bak from SQL Server 2008 r2 to SQL Server 2012

Posted on 2014-11-17
15
271 Views
Last Modified: 2014-11-22
Hi

I have recently had to upgrade my server following a disk failure.

The new server has arrived with SQL Server 2012, but my system database backups are from SQL Server 2008 r2, so I cannot restore them! Nice one Microsoft!

The error message is:
Msg 3168, Level 16, State 1, Line 1
The backup of the system database on the device d:\MSDB3.Bak cannot be restored because it was created by a different version of the server (10.00.4067) than this server (11.00.5058).
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

Short of finding an old version of SQL Server 2008 r2, restoring it on that and then scripting the jobs etc out, is there a better way?

Surely Microsoft must have a work around, but I can't find it anywhere!

Thanks for you help!!!
0
Comment
Question by:rwlloyd71
  • 8
  • 7
15 Comments
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40446804
You can't restore system databases from a different SQL Server version.
If what you want to achieve is to migrate jobs, then you have two options:

1. Create a SSIS package using the TransferJobTask

2. Script the jobs and run the script in the new SQL Server instance

0
 

Author Comment

by:rwlloyd71
ID: 40446810
Hi Vitor,

Thanks for your comments,

Would this mean that I have to have a working version of SQL Server 2008 r2 installed?

I only have 2012 on my replacement server and I do not want to add any other editions!

Richard
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40446814
Truly, I can't understand what you are achieving here. I was only guessing if you want to move the jobs from servers, so I gave two solutions how to do it.

If you can explain me better what you want/need to do I will be happy to help you.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:rwlloyd71
ID: 40446883
In a nutshell...

I need to restore a SQL 2008 r2 MSDB.bak database on to  SQL Server 2012, but Microsoft say:

"System databases can be restored only from backups that are created on the version of SQL Server that the server instance is currently running. For example, to restore a system database on a server instance that is running on SQL Server 20012, you must use a database backup that was created after the server instance was upgraded to SQL Server 2012."

So I am stuck!

Richard
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40446888
Richard, that part I understood. My question is why you need to restore de MSDB from a MSSQL 2008R2 to a MSSQL 2012?
0
 

Author Comment

by:rwlloyd71
ID: 40446926
I used to run my websites off a SQL 2008 server, but the disk failed so I purchased a new server. My replacement server has got SQL 2012. I need to restore the backups, including SQL AGENT Jobs on to the new server.
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40446937
Ok. That confirmed my guess. You don't need to restore the MSDB to have your jobs back. Just follow what I said in my first comment. There's two ways to copy jobs from one server to another one.
If you have any doubts about copy the jobs, just post here what you need to go forward with this, ok?
0
 

Author Comment

by:rwlloyd71
ID: 40446988
Sorry Vitor, still not sure how to get access to the jobs in the .bak file if I don't restore it first?
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40446996
You need to restore it in a SQL Server 2008R2 instance and only after that you can get access to the jobs. The first step (restore) need to be done always.
0
 

Author Comment

by:rwlloyd71
ID: 40447134
Bingo! I have not got a SQL 2008 server to restore it on!
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40447145
You need to or you won't be able to restore the jobs.
Can't you install one and delete it after you export the jobs?
0
 

Accepted Solution

by:
rwlloyd71 earned 0 total points
ID: 40447169
I have started to do this already, but it does seem a bit ridiculous that Microsoft can't restore their own backups from previous versions, or provide a work around! Mind you nothing surprises me about Microsoft anymore...

Thanks for your help anyway.
0
 
LVL 48

Expert Comment

by:Vitor Montalvão
ID: 40447180
Sure isn't my fault. I didn't develop SQL Server. Just work with it.
Anyway, I gave you two workarounds. Aren't you going to apply at least one of them? It's better than recreate the jobs from scratch, right?
0
 

Author Comment

by:rwlloyd71
ID: 40447183
When I have reinstalled SQL Server 2008, I'll give it a go!

Thanks
0
 

Author Closing Comment

by:rwlloyd71
ID: 40459164
Very helpful, but not able to resolve my problem in any better way than I already had in  mind. Not Vitor's fault, just the short sightedness of Microsoft!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Query to return total 6 22
SQL Server 2012 rs - Sum each category by month 4 41
Challenging SQL Update 5 49
SSRS 2013 - Creating a summarized report 19 49
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question