Learn more about SQL Server tools

mssqltips logo

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories


Generate INSERT statement in Management Studio



Let's see how to use SQL Server Management Studio to build a simple INSERT statement for you.


First, let's navigate to our table in SSMS located at root | Databases | Test | Tables as shown below:

Once we have the table list, right click on the table and select Script Table as | INSERT To | New Query Editor Window as shown below:

Following the steps above will generate this code:

As you can see, using SSMS will generate a simple INSERT statement template which you can modify for your needs.

Last Update: 9/16/2011

More SQL Server Solutions

Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 

Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.


Learn more about SQL Server tools