Insert Script Generator for Microsoft SQL Server

Many months ago I had to find a way to generate insert scripts for several database tables to populate those tables with data later (during the creation of new database instance). I haven’t found any good solutions in Internet or any options at MS SQL Server Management Studio, so I decided to develop my own Insert Script Generator…

eugenedotnet microsoft ms sql server insert script generator


It took me some hours to create a tool and some time to test it. Application is tested with Microsoft SQL Server 2005 (application have even generated scripts for 31000 rows). The process of generating insert scripts using my tool has three main steps:

  1. Enter connection string (or database login information)
  2. Select table (at this moment we can generate script only for one table at the same time)
  3. Push “Generate” button and enjoy the results (you can copy the results from textbox)

Here is a short list of some features:

  • Tool can refresh the list of database tables using “Refresh tables” button
  • Tool can use special date format for datetime/timestamp types. Date format can be entered using textbox on top. Help is provided.
  • Generated scripts have copy to clipboard ability. Simply, push the right mouse button on textbox with results
  • Tool sets IDENTITY_INSERT OFF/ON if table has IDENTITY columns
  • Application uses DataSet to get insert scripts from

You can download the tool from those locations:

Feel free to contact me, if you have any questions regarding this tool.



This entry was posted in Development, Tools and tagged , , . Bookmark the permalink.

5 Responses to Insert Script Generator for Microsoft SQL Server

  1. Is this the newest script for this server? Or is this out of date already?

  2. sen says:

    Thank you. This is very helpful for us

  3. Rahil says:

    Thanks, It is really useful.

  4. Bernhard says:

    Simply Great! Thanks Jevgeni!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comments links could be nofollow free.

Notify me of followup comments via e-mail. You can also subscribe without commenting.