<?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; Insert Multiple Records Using One Insert Statement &#8211; Use of UNION ALL</title>
	<atom:link href="http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Fri, 20 Nov 2009 20:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Padma</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57716</link>
		<dc:creator>Padma</dc:creator>
		<pubDate>Thu, 19 Nov 2009 00:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57716</guid>
		<description>I have to insert muliple records in two scenarios:
I have coverages and Rates, each location has muliple coverages and  each coverage has muliple rates 

coverageId 1
 rateId  1,2, 3, 4, 
coverageId  2, 
rateId 1, 2, 3

Insert above into a table LocationRate  that has 
LovCovRateId, identity field,
LocationId
coverageId
rateId

I have to first select coverages for each location from another table
(select coverageId from locationInfo table)

Then refer to a rate table to get the rates for each coverageid (Select rateId from rates where coverageId = (select coverageId from LocInformation table where locationId = @locationId)

then get those rateId&#039;s for each coverage Id&#039;s and insert all the relevant coverageId AND their RateId&#039;s into the LocationRate table.
So here there is a case of two scenarios of muliple inserts, muliple coverages and for each coverage muliple rateId&#039;s


Pinal, I always look for solutions given by you, I feel you can help me on this, Any help will be much appreciated, thanks in advance!</description>
		<content:encoded><![CDATA[<p>I have to insert muliple records in two scenarios:<br />
I have coverages and Rates, each location has muliple coverages and  each coverage has muliple rates </p>
<p>coverageId 1<br />
 rateId  1,2, 3, 4,<br />
coverageId  2,<br />
rateId 1, 2, 3</p>
<p>Insert above into a table LocationRate  that has<br />
LovCovRateId, identity field,<br />
LocationId<br />
coverageId<br />
rateId</p>
<p>I have to first select coverages for each location from another table<br />
(select coverageId from locationInfo table)</p>
<p>Then refer to a rate table to get the rates for each coverageid (Select rateId from rates where coverageId = (select coverageId from LocInformation table where locationId = @locationId)</p>
<p>then get those rateId&#8217;s for each coverage Id&#8217;s and insert all the relevant coverageId AND their RateId&#8217;s into the LocationRate table.<br />
So here there is a case of two scenarios of muliple inserts, muliple coverages and for each coverage muliple rateId&#8217;s</p>
<p>Pinal, I always look for solutions given by you, I feel you can help me on this, Any help will be much appreciated, thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark_#386</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57704</link>
		<dc:creator>Mark_#386</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57704</guid>
		<description>Very good performance increase. THANK YOU, Pinal Dave!</description>
		<content:encoded><![CDATA[<p>Very good performance increase. THANK YOU, Pinal Dave!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57684</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Wed, 18 Nov 2009 03:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57684</guid>
		<description>@Kavya, 

One solution if you are still in designing phase, Add Last_updated_Time column to your table and assign a default value of getdate().

By this way, you can know what is the last value that was inserted into the table based on the datetime column.

Or you can also an Identity column that will give you lastest inserted record.

Regarding Second Question.

Locking a record in a table.

This is just a summary for you to start, please refer books online for in depth knowledge...

SQL Server applies Shared / Exclusive locks when dealing with records in a table.

Exclusive lock: SQL Server puts a Exclusive lock on the table when a user updates / inserts a record into a table.

Shared Lock: SQL Server puts a Exclusive lock on the table when a user reads data from a table.

Shared lock is compatible with other shared Locks, meaning multiple reads can happen simultaneously on a table.

Exclusive lock is not compatible with Shared Lock, meaning if SQL Server puts a Exclusive Lock on a table, No other connection can read data from that table.

But still, there could be scenarios, where it is possible to read dirty data, lose updates, phantom data.... To overcome all these cases, You need to apply proper Isolation level before you initiate any transaction.

I strongly Suggest you read the topic, ISOLATION LEVELS in SQL SERVER 2005. 

This topic has been explained very well in simple words with example in below weblink:
http://www.sql-server-performance.com/articles/dba/isolation_levels_2005_p1.aspx

~ IM.</description>
		<content:encoded><![CDATA[<p>@Kavya, </p>
<p>One solution if you are still in designing phase, Add Last_updated_Time column to your table and assign a default value of getdate().</p>
<p>By this way, you can know what is the last value that was inserted into the table based on the datetime column.</p>
<p>Or you can also an Identity column that will give you lastest inserted record.</p>
<p>Regarding Second Question.</p>
<p>Locking a record in a table.</p>
<p>This is just a summary for you to start, please refer books online for in depth knowledge&#8230;</p>
<p>SQL Server applies Shared / Exclusive locks when dealing with records in a table.</p>
<p>Exclusive lock: SQL Server puts a Exclusive lock on the table when a user updates / inserts a record into a table.</p>
<p>Shared Lock: SQL Server puts a Exclusive lock on the table when a user reads data from a table.</p>
<p>Shared lock is compatible with other shared Locks, meaning multiple reads can happen simultaneously on a table.</p>
<p>Exclusive lock is not compatible with Shared Lock, meaning if SQL Server puts a Exclusive Lock on a table, No other connection can read data from that table.</p>
<p>But still, there could be scenarios, where it is possible to read dirty data, lose updates, phantom data&#8230;. To overcome all these cases, You need to apply proper Isolation level before you initiate any transaction.</p>
<p>I strongly Suggest you read the topic, ISOLATION LEVELS in SQL SERVER 2005. </p>
<p>This topic has been explained very well in simple words with example in below weblink:<br />
<a href="http://www.sql-server-performance.com/articles/dba/isolation_levels_2005_p1.aspx" rel="nofollow">http://www.sql-server-performance.com/articles/dba/isolation_levels_2005_p1.aspx</a></p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kavya</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57662</link>
		<dc:creator>kavya</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57662</guid>
		<description>Hi,
I wanted to know about multiuser scenario...
While many users are inserting values to the DB at a time how to get the last id being inserted..
And i want information about record locking. Please help.

Thanks &amp; Regards
Kavya</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I wanted to know about multiuser scenario&#8230;<br />
While many users are inserting values to the DB at a time how to get the last id being inserted..<br />
And i want information about record locking. Please help.</p>
<p>Thanks &amp; Regards<br />
Kavya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vanishree</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57581</link>
		<dc:creator>Vanishree</dc:creator>
		<pubDate>Fri, 13 Nov 2009 06:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57581</guid>
		<description>HI,
I have a jsp Page where User Add Text Box&#039;s as per is requriment for that am using JavaScript,

Now i want to insert those textbox values in my database table when the user click submit button,

Regards
Vanishree</description>
		<content:encoded><![CDATA[<p>HI,<br />
I have a jsp Page where User Add Text Box&#8217;s as per is requriment for that am using JavaScript,</p>
<p>Now i want to insert those textbox values in my database table when the user click submit button,</p>
<p>Regards<br />
Vanishree</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inayat</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57514</link>
		<dc:creator>Inayat</dc:creator>
		<pubDate>Wed, 11 Nov 2009 04:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57514</guid>
		<description>How can i insertthe values of  a text file in sqlserver 2005 by using .net</description>
		<content:encoded><![CDATA[<p>How can i insertthe values of  a text file in sqlserver 2005 by using .net</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inayat</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57513</link>
		<dc:creator>Inayat</dc:creator>
		<pubDate>Wed, 11 Nov 2009 04:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-57513</guid>
		<description>How can i load a text file in sqlserver 2005 by using .net</description>
		<content:encoded><![CDATA[<p>How can i load a text file in sqlserver 2005 by using .net</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56940</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Fri, 23 Oct 2009 13:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56940</guid>
		<description>@Damodharan

Pinal has an article on three emthods here: http://blog.sqlauthority.com/2007/03/25/sql-server-identity-vs-scope_identity-vs-ident_current-retrieve-last-inserted-identity-of-record/

The OUTPUT clause is mentioned here: http://blog.sqlauthority.com/2009/03/24/sql-server-2008-scope_identity-bug-with-multi-processor-parallel-plan-and-solution/

Personally, i use the OUTPUT clause.</description>
		<content:encoded><![CDATA[<p>@Damodharan</p>
<p>Pinal has an article on three emthods here: <a href="http://blog.sqlauthority.com/2007/03/25/sql-server-identity-vs-scope_identity-vs-ident_current-retrieve-last-inserted-identity-of-record/" rel="nofollow">http://blog.sqlauthority.com/2007/03/25/sql-server-identity-vs-scope_identity-vs-ident_current-retrieve-last-inserted-identity-of-record/</a></p>
<p>The OUTPUT clause is mentioned here: <a href="http://blog.sqlauthority.com/2009/03/24/sql-server-2008-scope_identity-bug-with-multi-processor-parallel-plan-and-solution/" rel="nofollow">http://blog.sqlauthority.com/2009/03/24/sql-server-2008-scope_identity-bug-with-multi-processor-parallel-plan-and-solution/</a></p>
<p>Personally, i use the OUTPUT clause.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damodharan V.M</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56932</link>
		<dc:creator>Damodharan V.M</dc:creator>
		<pubDate>Fri, 23 Oct 2009 11:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56932</guid>
		<description>How can i get all newly inserted identiy id. I used following query but it returns only the last record id. Can u help me?

INSERT INTO TableNew(
column1,
column2,
column3
)
SELECT
1, 
xmlcontent.value(&#039; column1[1]&#039;,&#039;VARCHAR(200)&#039;) column1,
xmlcontent.value(&#039; column2[1]&#039;,&#039;BIT&#039;) column2
FROM @xmlData.nodes(&#039;//Table1&#039;) AS R ( xmlcontent )

SELECT IDENT_CURRENT(&#039;TableNew&#039;)</description>
		<content:encoded><![CDATA[<p>How can i get all newly inserted identiy id. I used following query but it returns only the last record id. Can u help me?</p>
<p>INSERT INTO TableNew(<br />
column1,<br />
column2,<br />
column3<br />
)<br />
SELECT<br />
1,<br />
xmlcontent.value(&#8216; column1[1]&#8216;,&#8217;VARCHAR(200)&#8217;) column1,<br />
xmlcontent.value(&#8216; column2[1]&#8216;,&#8217;BIT&#8217;) column2<br />
FROM @xmlData.nodes(&#8216;//Table1&#8242;) AS R ( xmlcontent )</p>
<p>SELECT IDENT_CURRENT(&#8216;TableNew&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56860</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 21 Oct 2009 13:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56860</guid>
		<description>@VIJAY

 In SQL Server 2008, that syntax should work. Prior to that  version, a VALUES statement can only INSERT one record at a time.

So, there are two options:

insert into DEPT(DNO) VALUES (1);
insert into DEPT(DNO) VALUES (2);
insert into DEPT(DNO) VALUES (3);

Or: 

insert into DEPT(DNO)
 SELECT 1 UNION ALL
 SELECT 2 UNION ALL
 SELECT 3;</description>
		<content:encoded><![CDATA[<p>@VIJAY</p>
<p> In SQL Server 2008, that syntax should work. Prior to that  version, a VALUES statement can only INSERT one record at a time.</p>
<p>So, there are two options:</p>
<p>insert into DEPT(DNO) VALUES (1);<br />
insert into DEPT(DNO) VALUES (2);<br />
insert into DEPT(DNO) VALUES (3);</p>
<p>Or: </p>
<p>insert into DEPT(DNO)<br />
 SELECT 1 UNION ALL<br />
 SELECT 2 UNION ALL<br />
 SELECT 3;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VIJAY</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56841</link>
		<dc:creator>VIJAY</dc:creator>
		<pubDate>Wed, 21 Oct 2009 08:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56841</guid>
		<description>I AM TRYING TO INSERT MULITPLE ROW IN ONE STATEMENT ,BUT ITS DOES NOT WORK 

I WROTE

insert into DEPT(DNO) VALUES (1), (2) , (3); 

AND ERROR SHOW:-

Msg 102, Level 15, State 1, Line 80
Incorrect syntax near &#039;,&#039;.

PLEASE TELL ME WHAT CAN I DO ,SYNTEX IS RIGHT BT DOES NOT WORK</description>
		<content:encoded><![CDATA[<p>I AM TRYING TO INSERT MULITPLE ROW IN ONE STATEMENT ,BUT ITS DOES NOT WORK </p>
<p>I WROTE</p>
<p>insert into DEPT(DNO) VALUES (1), (2) , (3); </p>
<p>AND ERROR SHOW:-</p>
<p>Msg 102, Level 15, State 1, Line 80<br />
Incorrect syntax near &#8216;,&#8217;.</p>
<p>PLEASE TELL ME WHAT CAN I DO ,SYNTEX IS RIGHT BT DOES NOT WORK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: okello</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56805</link>
		<dc:creator>okello</dc:creator>
		<pubDate>Tue, 20 Oct 2009 06:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56805</guid>
		<description>how can append/insert records in excel format, at once, to Ms access database table using the insert sql query</description>
		<content:encoded><![CDATA[<p>how can append/insert records in excel format, at once, to Ms access database table using the insert sql query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56629</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Mon, 12 Oct 2009 20:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56629</guid>
		<description>@karthi

 Which part is dynamic? Is this a T-SQL script?</description>
		<content:encoded><![CDATA[<p>@karthi</p>
<p> Which part is dynamic? Is this a T-SQL script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56628</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Mon, 12 Oct 2009 20:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56628</guid>
		<description>@Ankit

I don&#039;t understand the question. What exactly is the problem?</description>
		<content:encoded><![CDATA[<p>@Ankit</p>
<p>I don&#8217;t understand the question. What exactly is the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthi</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56472</link>
		<dc:creator>karthi</dc:creator>
		<pubDate>Tue, 06 Oct 2009 12:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56472</guid>
		<description>how insert the dynamic data in mysql using c pogram.

ie
a=5;
b=10;
c=15;

INSERT INTO per(a,b,c) VALUES(&#039;a&#039;,&#039;b&#039;,&#039;c&#039;)</description>
		<content:encoded><![CDATA[<p>how insert the dynamic data in mysql using c pogram.</p>
<p>ie<br />
a=5;<br />
b=10;<br />
c=15;</p>
<p>INSERT INTO per(a,b,c) VALUES(&#8216;a&#8217;,'b&#8217;,'c&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56313</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Thu, 01 Oct 2009 09:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56313</guid>
		<description>sirr,

how to insert more data(for ex 10 mb) in sql serverr</description>
		<content:encoded><![CDATA[<p>sirr,</p>
<p>how to insert more data(for ex 10 mb) in sql serverr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56267</link>
		<dc:creator>Ankit</dc:creator>
		<pubDate>Wed, 30 Sep 2009 10:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-56267</guid>
		<description>hi i want a query 2 retrive data from 2 database &amp; add it in another 3rd database
please suggest me the query.. m fed up.. i&#039;m searching since 2 days &amp; found the following:

Insert into table_name(col_name1, col_name2)
values ((select column_name from table_name1 where id = &#039;29&#039;) union (select column_name  from table_name2 where id = &#039;3&#039;))

please give me a solution...</description>
		<content:encoded><![CDATA[<p>hi i want a query 2 retrive data from 2 database &amp; add it in another 3rd database<br />
please suggest me the query.. m fed up.. i&#8217;m searching since 2 days &amp; found the following:</p>
<p>Insert into table_name(col_name1, col_name2)<br />
values ((select column_name from table_name1 where id = &#8216;29&#8242;) union (select column_name  from table_name2 where id = &#8216;3&#8242;))</p>
<p>please give me a solution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55991</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Sat, 19 Sep 2009 20:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55991</guid>
		<description>Thanks for this. I had a MySql table with 3 columns and 4,500 rows. I used your syntax to convert to Sql Server and the insert took 23 seconds. Not bad!</description>
		<content:encoded><![CDATA[<p>Thanks for this. I had a MySql table with 3 columns and 4,500 rows. I used your syntax to convert to Sql Server and the insert took 23 seconds. Not bad!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dipti</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55966</link>
		<dc:creator>Dipti</dc:creator>
		<pubDate>Fri, 18 Sep 2009 04:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55966</guid>
		<description>@ brian tkatch

i tried it. it works. Thanx!!</description>
		<content:encoded><![CDATA[<p>@ brian tkatch</p>
<p>i tried it. it works. Thanx!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55948</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Thu, 17 Sep 2009 16:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/#comment-55948</guid>
		<description>@dipti

INSERT INTO table1(col1, col2, col3, col4)
SELECT col1, col2, col3, @global_var FROM table2;</description>
		<content:encoded><![CDATA[<p>@dipti</p>
<p>INSERT INTO table1(col1, col2, col3, col4)<br />
SELECT col1, col2, col3, @global_var FROM table2;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
