May 5, 2009 at 5:07 am
Hi All,
Is it possible restore database SQL 2008 backup to SQL 2005?. I try to restore sql2008 backup to SQL 2005 server, but it failed.
May 5, 2009 at 5:29 am
You can't directly restore a 2008 database to 2005, but you can use the generate scripts wizard to restore a 2008 database on 2005. Here is an article that describes how to do it.
May 5, 2009 at 6:03 am
There's no way to downgrade database versions. A DB on SQL 2008 has a slightly different file structure and different system tables, and that's regardless of the compatibility level. SQL 2005 does not understand that structure and cannot restore or attach a 2008 database
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 7, 2009 at 9:31 am
We cant downgrade the database versions.
We can generate the script and excute on the lower versions
May 10, 2009 at 12:41 pm
jai_sl2000 (5/5/2009)
Hi All,Is it possible restore database SQL 2008 backup to SQL 2005?. I try to restore sql2008 backup to SQL 2005 server, but it failed.
AS others have suggested u cannot downgrade a database,, even if u get to change the compaibility level you are welcoming troubles. Same thing with 2005 to 2000 too..
January 17, 2010 at 11:52 pm
Ken Simmons-546488 (5/5/2009)
You can't directly restore a 2008 database to 2005, but you can use the generate scripts wizard to restore a 2008 database on 2005. Here is an article that describes how to do it.
I had tried scripting a database and the script file was 5GB.And when I tried to execute the script in management studio it seemed to have crashed:-(
January 18, 2010 at 12:48 am
chandan_jha18 (1/17/2010)
Ken Simmons-546488 (5/5/2009)
You can't directly restore a 2008 database to 2005, but you can use the generate scripts wizard to restore a 2008 database on 2005. Here is an article that describes how to do it.I had tried scripting a database and the script file was 5GB.And when I tried to execute the script in management studio it seemed to have crashed:-(
As you can see from the posts above no downgrade the database version! Except scripting, try to use Export/Import tool to export all objects from SQL Server 2008 to SQL Server 2005 and let me know if it works!?
January 18, 2010 at 1:09 am
I tried executing the script from the command line utility and it works well:-)
I have a question about import and export wizard.Does it copies all the objects in the database(functions,stored procs etc.,schemas) and does it create any issues if there are primary and foreign keys in the source?
January 18, 2010 at 1:38 am
chandan_jha18 (1/18/2010)
I tried executing the script from the command line utility and it works well:-)I have a question about import and export wizard.Does it copies all the objects in the database(functions,stored procs etc.,schemas) and does it create any issues if there are primary and foreign keys in the source?
Well, you have found the solution, so about import and export wizard using SSMS - it will copy (Tables and Views) in the database. I thought that you need your data and this is one way how to take data from SQL Server 2008 to SQL Server 2005, and sure there will be the issue with you PKey and FKey, but you can avoid it during the export / import wizard because you have possibility to edit SQL and put the PKeys, FKeys, Identities or the script of your tables one by one. I think if you use the SSIS using the Visual Studio you have more possibility for export / import all objects and all relations between them including PKeys, FKeys, UDF, SPs, Sch etc.
January 18, 2010 at 2:09 am
Thanks for your advice.I guess by scripting the table structures from source db,one can spend sometime and create them in the new tables.Its time consuming but acceptable given the strange things we encounter while moving from 2008 to previous versions.Thanks:-)
January 18, 2010 at 2:28 am
chandan_jha18 (1/18/2010)
Thanks for your advice.I guess by scripting the table structures from source db,one can spend sometime and create them in the new tables.Its time consuming but acceptable given the strange things we encounter while moving from 2008 to previous versions.Thanks:-)
Yes, every time we are looking forward for the new version and how to do the upgrade, but as you can see we can have situation that we should go downgrade with DB version and problems are there, but sure that they have solution!
January 18, 2010 at 7:22 am
chandan_jha18 (1/17/2010)
Ken Simmons-546488 (5/5/2009)
You can't directly restore a 2008 database to 2005, but you can use the generate scripts wizard to restore a 2008 database on 2005. Here is an article that describes how to do it.I had tried scripting a database and the script file was 5GB.And when I tried to execute the script in management studio it seemed to have crashed:-(
What method of script did you do ? 5GB is very big ? You can use the export wizard to select all the tables and push the data to the other server. Perhaps you should create 1 scripts for all the stored procedures, another for all the views ....
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply