Behold the turtle

jb's Blog

"behold the turtle, he only makes progress when he sticks his neck out"
SQL2008 for Developers: INSERT INTO enhancement 13 Sep 2007 18:42

Sometimes it’s the smallest enhancements… INSERT INTO has gotten a small makeover in SQL Server 2008 which now allows you to specify multiple rows as part of a single statement. While the sky has yet to fall in reaction to this, it’s a great little enhancement for people generating data insert scripts so that the data can be inserted as a single statement (rather than having to batch it all together), and I was surprised how many people commented to me after my TechEd session about how they loved this change :)

To make use of it, simple append addition rows in a comma delimited format, surrounding each row set in brackets.

e.g.

insert into Product values

(1, 'XBOX 360', 100),

(2, 'Black Zune', 100),

(3, 'Windows Server 2008', 100),

(4, 'SQL Server 2008', 100),

(5, 'Visual Studio 2008 Professional Edition', 100)


comments (57)

history


2006 (47)
2007 (79)
January 2008 (5)
February 2008 (17)
March 2008 (7)
April 2008 (4)
May 2008 (1)
June 2008 (6)
August 2008 (1)

blogs i read


JDs Weblog
Andrews Blog
Chris Auld
Josh Robb
Ivan Porto Carrero
Rod Drury
Nic Wise
Alex James
Darryl Burling (MS)
Nigel Parker (MS)
Sean McBreen (MS)

links


Mindscape
Intergen
Microsoft Regional Director Microsoft MVP - SQL Server

RSS Feed rss feed