<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2008 &#8211; Insert Multiple Records Using One Insert Statement &#8211; Use of Row Constructor</title>
	<atom:link href="http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Antonio</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-57771</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Fri, 20 Nov 2009 11:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-57771</guid>
		<description>With sql server CE this query:

INSERT INTO Scontistica 
               (Prodotto,Sconto)
values (&#039;Sky&#039;,0.5),
          (&#039;Skywarm&#039;,0.5)

give me this error:
[ Token line number = 2,Token line offset = 19,Token in error = , ]

why??</description>
		<content:encoded><![CDATA[<p>With sql server CE this query:</p>
<p>INSERT INTO Scontistica<br />
               (Prodotto,Sconto)<br />
values (&#8216;Sky&#8217;,0.5),<br />
          (&#8216;Skywarm&#8217;,0.5)</p>
<p>give me this error:<br />
[ Token line number = 2,Token line offset = 19,Token in error = , ]</p>
<p>why??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-56626</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 12 Oct 2009 19:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-56626</guid>
		<description>So can that list of values be passed in via parameter(s) of a stored procedure?</description>
		<content:encoded><![CDATA[<p>So can that list of values be passed in via parameter(s) of a stored procedure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-54035</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Thu, 23 Jul 2009 22:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-54035</guid>
		<description>@fred 

Insert into table2 select * from table1
GO 1000

above statement will insert everything from table1 into table2 1000 times. Just change the number beside GO and and you are good. 

This will work in SQL Server 2005/2008.

~ IM.</description>
		<content:encoded><![CDATA[<p>@fred </p>
<p>Insert into table2 select * from table1<br />
GO 1000</p>
<p>above statement will insert everything from table1 into table2 1000 times. Just change the number beside GO and and you are good. </p>
<p>This will work in SQL Server 2005/2008.</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fred</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-54007</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Thu, 23 Jul 2009 10:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-54007</guid>
		<description>how do i insert the same record i a table by a number of times</description>
		<content:encoded><![CDATA[<p>how do i insert the same record i a table by a number of times</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: al</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-53491</link>
		<dc:creator>al</dc:creator>
		<pubDate>Mon, 06 Jul 2009 18:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-53491</guid>
		<description>Thank you for the brief article.  It was brief and to the point.
I have used this syntax with other tools.  It is ideal for loading initial definition data, and test data.  Its simplicity is its strength.</description>
		<content:encoded><![CDATA[<p>Thank you for the brief article.  It was brief and to the point.<br />
I have used this syntax with other tools.  It is ideal for loading initial definition data, and test data.  Its simplicity is its strength.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NaZAf</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-53459</link>
		<dc:creator>NaZAf</dc:creator>
		<pubDate>Sat, 04 Jul 2009 05:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-53459</guid>
		<description>Hi,
There are other alternatives and better approaches than multiple statements shown here.

For example, a single INSERT query will not let you process the parameters before insertion, which makes this method weak. Using triggers will work, but will degrade your server performance. 

So if your data needs no processing, you can use multiple insert statements. However, if you want to process them then I&#039;d recommend using one of the following two new features since SQL Server 2005: 

1. Using OPENXML
2. CLR User Defined Types

Just google them and you will find many examples and tutorials.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
There are other alternatives and better approaches than multiple statements shown here.</p>
<p>For example, a single INSERT query will not let you process the parameters before insertion, which makes this method weak. Using triggers will work, but will degrade your server performance. </p>
<p>So if your data needs no processing, you can use multiple insert statements. However, if you want to process them then I&#8217;d recommend using one of the following two new features since SQL Server 2005: </p>
<p>1. Using OPENXML<br />
2. CLR User Defined Types</p>
<p>Just google them and you will find many examples and tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhurendra</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-53272</link>
		<dc:creator>Dhurendra</dc:creator>
		<pubDate>Fri, 26 Jun 2009 07:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-53272</guid>
		<description>This is nice one but we can also insert more than one row as below:-

Insert into tableName(col1,col2) values(1,2),(11,22),(44,55);

Out Put
Col1   Col2
1          2
11        22
44        55


Thanks.........</description>
		<content:encoded><![CDATA[<p>This is nice one but we can also insert more than one row as below:-</p>
<p>Insert into tableName(col1,col2) values(1,2),(11,22),(44,55);</p>
<p>Out Put<br />
Col1   Col2<br />
1          2<br />
11        22<br />
44        55</p>
<p>Thanks&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rwallacej</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-53053</link>
		<dc:creator>rwallacej</dc:creator>
		<pubDate>Wed, 17 Jun 2009 09:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-53053</guid>
		<description>Pederiko,
I have tried this out and am getting the same error - so must be a limitation</description>
		<content:encoded><![CDATA[<p>Pederiko,<br />
I have tried this out and am getting the same error &#8211; so must be a limitation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pederiko</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-52691</link>
		<dc:creator>Pederiko</dc:creator>
		<pubDate>Wed, 03 Jun 2009 12:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-52691</guid>
		<description>I have a question about this new INSERT command in SQL Server 2008. Is it limited to only 1000 enteries? I have a lot more and I am getting the following error:
The number of row value expressions in the INSERT statement exceeds the maximum allowed number of 1000 row values</description>
		<content:encoded><![CDATA[<p>I have a question about this new INSERT command in SQL Server 2008. Is it limited to only 1000 enteries? I have a lot more and I am getting the following error:<br />
The number of row value expressions in the INSERT statement exceeds the maximum allowed number of 1000 row values</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauro</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-51017</link>
		<dc:creator>Mauro</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-51017</guid>
		<description>It´s a new feature of Sql 2008. Very Easy.</description>
		<content:encoded><![CDATA[<p>It´s a new feature of Sql 2008. Very Easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oracle</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-47118</link>
		<dc:creator>oracle</dc:creator>
		<pubDate>Mon, 23 Feb 2009 10:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-47118</guid>
		<description>can you give us the function tha inserts loads of rows at one time! PLEASE :)</description>
		<content:encoded><![CDATA[<p>can you give us the function tha inserts loads of rows at one time! PLEASE :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tejas Shah</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-44833</link>
		<dc:creator>Tejas Shah</dc:creator>
		<pubDate>Tue, 16 Dec 2008 06:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-44833</guid>
		<description>Hi Rajasekar,

You can not get deleted Rows in Sql server. 

You can get it only in Trigger in &quot;deleted table&quot; or you can use &quot;instead of trigger&quot;

Tejas</description>
		<content:encoded><![CDATA[<p>Hi Rajasekar,</p>
<p>You can not get deleted Rows in Sql server. </p>
<p>You can get it only in Trigger in &#8220;deleted table&#8221; or you can use &#8220;instead of trigger&#8221;</p>
<p>Tejas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajasekar</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-44829</link>
		<dc:creator>rajasekar</dc:creator>
		<pubDate>Tue, 16 Dec 2008 05:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-44829</guid>
		<description>how to retrive deleted rows in sql server(in oracle having FLASHBACK QUERY),i know only we have an consistant backup that only restore the data.
any other feature do u know pls tell me
thanks and regards
Rajasekar</description>
		<content:encoded><![CDATA[<p>how to retrive deleted rows in sql server(in oracle having FLASHBACK QUERY),i know only we have an consistant backup that only restore the data.<br />
any other feature do u know pls tell me<br />
thanks and regards<br />
Rajasekar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Reddy</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-44245</link>
		<dc:creator>Nitin Reddy</dc:creator>
		<pubDate>Mon, 17 Nov 2008 10:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-44245</guid>
		<description>@lakshmi: This is an MS SQL Server 2008 feature - you cannot use this with MS SQL Server 2005</description>
		<content:encoded><![CDATA[<p>@lakshmi: This is an MS SQL Server 2008 feature &#8211; you cannot use this with MS SQL Server 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaurav</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-44156</link>
		<dc:creator>gaurav</dc:creator>
		<pubDate>Tue, 11 Nov 2008 11:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-44156</guid>
		<description>can we submit multiple listbox value into multiple table with the one insert query</description>
		<content:encoded><![CDATA[<p>can we submit multiple listbox value into multiple table with the one insert query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lakshmi</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-43164</link>
		<dc:creator>lakshmi</dc:creator>
		<pubDate>Tue, 23 Sep 2008 14:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-43164</guid>
		<description>Hi,
Is  below syntax works in  sql server 2005 or it works only in sql server 2008?
iam getting some error when i try to use  it in sql server-2005

INSERT INTO MyTable  (FirstCol, SecondCol)
    VALUES (&#039;First&#039;,1),
           (&#039;Second&#039;,2),
           (&#039;Third&#039;,3),
           (&#039;Fourth&#039;,4),
            (&#039;Fifth&#039;,5)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Is  below syntax works in  sql server 2005 or it works only in sql server 2008?<br />
iam getting some error when i try to use  it in sql server-2005</p>
<p>INSERT INTO MyTable  (FirstCol, SecondCol)<br />
    VALUES (&#8216;First&#8217;,1),<br />
           (&#8216;Second&#8217;,2),<br />
           (&#8216;Third&#8217;,3),<br />
           (&#8216;Fourth&#8217;,4),<br />
            (&#8216;Fifth&#8217;,5)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deep</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-42947</link>
		<dc:creator>Deep</dc:creator>
		<pubDate>Thu, 18 Sep 2008 15:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-42947</guid>
		<description>im new to tsql and your blog is of big help to me, more power.</description>
		<content:encoded><![CDATA[<p>im new to tsql and your blog is of big help to me, more power.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sujith Mysore</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-41810</link>
		<dc:creator>Sujith Mysore</dc:creator>
		<pubDate>Wed, 20 Aug 2008 07:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-41810</guid>
		<description>There is an easier way to do this.
If you are inserting a single row then use
insert into(a1,b1) values(1,2)

If inserting multiple rows using select statement use,

Insert into(a1,b1) (select a1,b1 from c)</description>
		<content:encoded><![CDATA[<p>There is an easier way to do this.<br />
If you are inserting a single row then use<br />
insert into(a1,b1) values(1,2)</p>
<p>If inserting multiple rows using select statement use,</p>
<p>Insert into(a1,b1) (select a1,b1 from c)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Insert Multiple Records Using One Insert Statement - Use of UNION ALL Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-40798</link>
		<dc:creator>SQL SERVER - Insert Multiple Records Using One Insert Statement - Use of UNION ALL Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Fri, 25 Jul 2008 07:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-40798</guid>
		<description>[...] Update: For SQL Server 2008 there is even better method of Row Construction, please read it here : SQL SERVER - 2008 - Insert Multiple Records Using One Insert Statement - Use of Row Constructor [...]</description>
		<content:encoded><![CDATA[<p>[...] Update: For SQL Server 2008 there is even better method of Row Construction, please read it here : SQL SERVER &#8211; 2008 &#8211; Insert Multiple Records Using One Insert Statement &#8211; Use of Row Constructor [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neearj</title>
		<link>http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/#comment-40116</link>
		<dc:creator>neearj</dc:creator>
		<pubDate>Sat, 12 Jul 2008 09:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=668#comment-40116</guid>
		<description>that&#039;s good for new generation because after upgrade on sql 2005 that is new version as discuss mr. drel as example
.................
so i appreciate to him.
haing a nice job.</description>
		<content:encoded><![CDATA[<p>that&#8217;s good for new generation because after upgrade on sql 2005 that is new version as discuss mr. drel as example<br />
&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
so i appreciate to him.<br />
haing a nice job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
