Click here to Skip to main content
15,877,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do I generate script with data in MSSQL 2012 to migrate in MSSQL 2008 . How do I move my data from MSSQL 2012 to MSSQL 2008

1 solution

Generate scripts with schema & data in SQL Server 2012 by following this
-> Right click on the database
-> Select "Tasks"
-> Clcik "Generate Scripts.."
-> Generate and publish script window will appear
-> Click "Next"
-> In "Choose Objects", you can select the entire database (which is default) to script or you can choose specific objects
-> Click "Next"
-> Click "Advanced"
-> Choose "Script for server version" to "SQL Server 2008"
-> Choose "Type of data to script" to "Schema & Data"
-> Click "OK"
-> You may change the file location and file name
-> Click "Next" & "Next"
-> With a success message you should get the required scripts

Now, you can run that script on SQL Server 2008 and it should create the schema along with the data.

Hope, it helps :)
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900