Solved

SQL 2008 database migration

Posted on 2014-01-23
3
429 Views
Last Modified: 2014-03-19
HI,
I am supposed to migrate or move the current database of sql 2008 to another server which has sql 2005 installed and hosts several production sql databases like blackberry server database and oracle.How should i go doing this without hampering the process.
0
Comment
Question by:Nkops
3 Comments
 
LVL 13

Accepted Solution

by:
Felix Leven earned 500 total points
ID: 39802505
Not possible to restore a 2008 backup to a SQL 2005 server.

You can use the "Generate SQL Server Scripts" wizard to create a script (including schema and data) that you can run on SQL 2005 to create the database.

Explained here:
http://www.devx.com/dbzone/Article/40531
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 39802555
#1 You can't restore a higher version of SQL backup to a lower version (same for attach DB)

#2 your options:
  - generate db script (set sql 2008 db in 2005 (90) compatibility and make sure no sql 2008 elements were used (e.g. 2008 datatype)
 - run this script in 2005 (create Db there) and start pumping data there from 2008:
   SSIS export\import, linked servers, bcp in\out, etc

also do not forget to create logins on the destination server...
0
 
LVL 7

Expert Comment

by:meispisces
ID: 39802583
As mentioned in above comments, you cannot restore database from Higher version (in your case 2008) to Lower Version (in Version 2005) but you can definately create SSIS packages that will do the table creation as well as the copy paste of data for you.

Refer: https://ssisblog.wordpress.com/tag/how-to-perform-backup-and-restore-using-ssis/
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how the fundamental information of how to create a table.

860 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