views:

102

answers:

4

Is there a tool that allows me to create a sql populate script for a table using its current data?

A: 

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

Kane
No, it won't - it's a test data generator which will create new test data for your tables, based on some data repositories. But it definitely does not script out your current data in your tables.
marc_s
+1  A: 

Maybe this is just enough for you: http://snipplr.com/view/12003/generate-insert-statements/

Scoregraphic
A: 

You can do it with Database Publishing Wizard. Here is a tutorial: Generate Script with Data from Database – Database Publishing Wizard

Giorgi
+1  A: 

Check out the SSMS Addins (for both SSMS 2005 and 2008):

alt text

One of the tools included in the "DataScripter" which will script out INSERT statements for the table(s) you want to.

marc_s