Reputation: 11711
Is there a tool that allows me to create a sql populate script for a table using its current data?
Upvotes: 7
Views: 21432
Reputation: 1057
Another way to do it, even more convenient for developers, is within Visual Studio 2015 or 2017 (possibly earlier versions too):
Upvotes: 1
Reputation: 347
Old question, but I got to the question before figuring out a way to solve the problem. So I'm just posting the method here in case it might help anyone else.
In SSMS:
Upvotes: 10
Reputation: 754348
Check out the SSMS Addins (for both SSMS 2005 and 2008):
One of the tools included in the "DataScripter" which will script out INSERT statements for the table(s) you want to.
Upvotes: 2
Reputation: 30873
You can do it with Database Publishing Wizard. Here is a tutorial: Generate Script with Data from Database – Database Publishing Wizard
Upvotes: 0
Reputation: 7200
Maybe this is just enough for you: http://snipplr.com/view/12003/generate-insert-statements/
Upvotes: 1
Reputation: 16802
You could look at purchasing the Data Generator by Red-Gate which can create random sets of data based on your database schema.
Note: I'm not sure if the tool will generate data based on your current data though
Upvotes: 0