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


SQL Server Insert Tutorial

By:   |   Last Updated: 2011-09-20   |   Comments (3)   |   Related Tips: More > T-SQL

Read the tutorial!

Need to be able to add data to your SQL Server tables? Have you found the SQL INSERT command?  Could you use some examples for inserting multiple rows into a sql table, SQL Server INSERT INTO with a SELECT from another table? Check out this tutorial to learn all about the SQL Server INSERT command.

The SQL Server INSERT statement is used to add records to a table. It is a fairly straightforward command that can be used in ad-hoc code and stored procedures. The following topics will be covered in this tutorial:

  • Sample table
  • Simple INSERT statement
  • Verify the INSERT commands
  • INSERT command with variables
  • INSERT stored procedure
  • Automatically generating an INSERT statement in SQL Server Management Studio
  • INSERT INTO a SQL Server table with IDENTITY column
  • INSERT INTO a SQL Server table with a SELECT statement
  • INSERT INTO a new table with the SELECT INTO command in SQL Server

Read the tutorial!

Last Updated: 2011-09-20

get scripts

next tip button

About the author
MSSQLTips author Jeremy Kadlec Since 2002, Jeremy Kadlec has delivered value to the global SQL Server community as an MSSQLTips.com co-founder and Edgewood Solutions SQL Server Consultant.

View all my tips

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.


Tuesday, September 20, 2011 - 5:38:30 PM - Anna Back To Top

Nice and clean tutorial, it is easy to read and memorize.

Thanks a lot


Tuesday, September 20, 2011 - 10:32:16 AM - Karl Olson Back To Top

Must agree with what Cheryl said above it would be great if there was a version of each tip that you could download, as i for one would like to add them in OneNote


Tuesday, September 20, 2011 - 9:30:49 AM - Cheryl Back To Top

It would be nice to be able to print the entire article - don't have the time to read it all at one time.

Learn more about SQL Server tools