Insert Multiple TSQL Rows

The only easy way to insert multiple records in TSQL (and it's quick!):

1
2
3
4
INSERT INTO TableName(COLUMNS...)
SELECT Val1, Val2...
UNION ALL
SELECT Val1, Val2...

etc.

Leave a Comment


NOTE - You can 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> <pre lang="" line="" escaped="" highlight="">