Reputation: 385
Hi I have done this before but cannot find out how i did it. I have a website that has a sql server 2008 db which needs to be put on a sql server 2005. i remember scripting it down to recreated it in 2005 i thought i did it through the 'generate script' wizard but this didnt script down the data, just the tables and stored procedures. what would be the best way of doing this?
Upvotes: 0
Views: 3915
Reputation: 22824
Try DBSourceTools.
http://dbsourcetools.codeplex.com.
It is specifically designed to script databases to disk, including all objects and data, and then re-create them through a deployment target.
I have done this many times before from 2008 to 2005, and the tool takes care of all database dependencies and data.
Upvotes: 0
Reputation: 6830
use the following convert options while doing the data export:
'SQL Server 2005'
'True'
'True'
edit: check out http://www.sqlservermart.com/HowTo/MSSQL_Convert_2008_To_2005.aspx for more info :-)
Upvotes: 0
Reputation: 4721
you are actually doing it right, you just have to select the proper options.
Under Script for Server Version
, choose SQL Server 2005
Under Types of data to script
, choose Schema and Data
Upvotes: 3