January 22, 2010

Restore SQL Server 2008 backup in SQL Server 2005

I have been asked this question many times – Is there a way to restore a SQL Server 2008 backup in SQL Server 2005. The plain answer is No. But there are workarounds.

The best option I know how to do this is to use the ‘Generate SQL Server Scripts’ Wizard. To do so, open SQL Server 2008 Management Studio > Databases > Right click Your Database > Tasks > Generate Scripts

Here’s a screenshot from my test machine:


A wizard appears. Follow the wizard and in the ‘Choose Script Options’, set the ‘Script for Server Version’ to ‘SQL Server 2005’ and set ‘Script Data’ to ‘True’


Now complete the wizard by saving the script and you should now have a script that can be restored in SQL Server 2005.

There’s also a tool called SQL Data Compare from RedGate that can be useful in this scenario.

Did you like this post?
kick it on DotNetKicks.com
subscribe via rss subscribe via e-mail
print this post follow me on twitter

About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal



0 Responses to "Restore SQL Server 2008 backup in SQL Server 2005"

Copyright © 2009-2016 All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions