Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Restoring SQL 2012 to SQL 2008 R2

Posted on 2015-01-14
7
Medium Priority
?
52 Views
Last Modified: 2015-05-13
I have generated teh script file and now i need to put that into SQL 2008 R2.  IS there something special that needs to be done to that script file or do i just open it in 2008?  Any help is appreciated.  Thanks!

Perry
0
Comment
Question by:swilliamson-mwns
[X]
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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 40549342
Are you trying to restore a database backup from 2012 to 2008? If so you can't. You can't restore a backup to an earlier version of SQL.
0
 

Author Comment

by:swilliamson-mwns
ID: 40549354
I am tryin g to move a DB from a 2012 SQL server to 2008 R2.  I thought i could generate a script from the 2012 and then pull it into 2008.  Is that not correct?
0
 
LVL 15

Expert Comment

by:Deepak Chauhan
ID: 40549357
what this script does?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:swilliamson-mwns
ID: 40549361
No Clue.  im not a database guy.  I have a DB that is on a 2012 server and needs to go on a 2008R2 SQL box.  looking  for how to get that done.
0
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 40549370
It is not easy. Scripting the table structure out is one thing but you need to deal with the data move, indexes, stored procedures, functions, views, etc.

http://solutioncenter.apexsql.com/restore-sql-server-database-backup-to-older-version-of-sql-server/

I've done it once and I don't want to do it again.
0
 
LVL 15

Expert Comment

by:Deepak Chauhan
ID: 40549419
Yes that’s correct! Some new features come in picture in SQL Server 2012 like (Sequence, column store index, pagination.. and so on). So you need to correct and modify the code and make it compatible with SQL 2k8.
0
 
LVL 70

Accepted Solution

by:
Scott Pletcher earned 1500 total points
ID: 40549467
You might be able to use the "Database Copy Wizard", running it from the SQL 2012 instance, and using the SMO method (i.e., not detach and attach).  You'll need to set all the "Scripting" options first.  It's not easy, but you might be able to get most (or even all) of the objects copied over that way.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

610 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