Reputation:
I cannot find how to generate a script with all the INSERT i have done so far in my database I managed to generate a script for my database itself but not for the data.
How could i do this ? Thanks in advance
Upvotes: 12
Views: 19361
Reputation: 1963
If you are using SQL Server 2008, you can generate the script for data in an sql server database by setting the Script Data option in Generate script dialog box
For bringing up Generate Scripts dialog do the following. 1. Right click on a database name in server explorer 2. Select Tasks -> Generate Scripts 3. Click next until you reaches script options 4. Under table/view options there is setting "Script Data". Change it to true to generate script for data.
If you version is the one prior to SQL Server 2008, then are many tools available like Sql Compare from RedGate!
Upvotes: 1
Reputation: 14787
Try this, using Sql Server Management Studio:
Upvotes: 25