<?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; Introduction to Merge Statement &#8211; One Statement for INSERT, UPDATE, DELETE</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: kiran</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-422500</link>
		<dc:creator><![CDATA[kiran]]></dc:creator>
		<pubDate>Sat, 16 Feb 2013 13:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-422500</guid>
		<description><![CDATA[hi pinal i am new in sql server
but i want to ask you that this merge is just like our user defined function, or procedure 
in which we can develop our own logic]]></description>
		<content:encoded><![CDATA[<p>hi pinal i am new in sql server<br />
but i want to ask you that this merge is just like our user defined function, or procedure<br />
in which we can develop our own logic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muralidharan</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-421276</link>
		<dc:creator><![CDATA[Muralidharan]]></dc:creator>
		<pubDate>Wed, 13 Feb 2013 08:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-421276</guid>
		<description><![CDATA[Hi Pinal,
i have a small prblem with merge condition, i am getting error as &quot;Incorrcet syntax near the keyword as&quot;. ,my query is

MERGE EventHistory AS EH
USING (select distinct ParcelId, accountno,ImagedDateTime, CreatedDateTime,DelDateTime 
from parcel
where AccountNo =  &#039;072049&#039; 
AND CreatedDateTime &gt; getdate() -1000
AND (ImagedDateTime is Not Null or DeldateTime is Not Null))AS PT
ON PT.ParcelId = EH.ParcelId
WHEN MATCHED THEN 
UPDATE SET EH.ImagedDateTime = PT.ImagedDateTime , EH.DelDateTime = PT.DelDateTime
WHEN NOT MATCHED THEN
INSERT(ParcelId,DelDateTime,CODSentDateTime,ImagedDateTime,PODSentDateTime,LastSentDateTime)
VALUES(PT.ParcelId,PT.DelDateTime,NULL,PT.ImagedDateTime,NULL,NULL)

how to resolve it. please help me.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
i have a small prblem with merge condition, i am getting error as &#8220;Incorrcet syntax near the keyword as&#8221;. ,my query is</p>
<p>MERGE EventHistory AS EH<br />
USING (select distinct ParcelId, accountno,ImagedDateTime, CreatedDateTime,DelDateTime<br />
from parcel<br />
where AccountNo =  &#8217;072049&#8242;<br />
AND CreatedDateTime &gt; getdate() -1000<br />
AND (ImagedDateTime is Not Null or DeldateTime is Not Null))AS PT<br />
ON PT.ParcelId = EH.ParcelId<br />
WHEN MATCHED THEN<br />
UPDATE SET EH.ImagedDateTime = PT.ImagedDateTime , EH.DelDateTime = PT.DelDateTime<br />
WHEN NOT MATCHED THEN<br />
INSERT(ParcelId,DelDateTime,CODSentDateTime,ImagedDateTime,PODSentDateTime,LastSentDateTime)<br />
VALUES(PT.ParcelId,PT.DelDateTime,NULL,PT.ImagedDateTime,NULL,NULL)</p>
<p>how to resolve it. please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: balaji</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-404824</link>
		<dc:creator><![CDATA[balaji]]></dc:creator>
		<pubDate>Mon, 07 Jan 2013 12:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-404824</guid>
		<description><![CDATA[hai, i have a setup where i need to store some data in 2 databases of SQL 2008 for redundant purpose. the SQL server is running in 2 different machines. both the machines collect the same data from same source (other server located in the same network) and store them. the problem i am facing is, if one server is switched OFF for say 1 hour, the server that was OFF, will not have the data of that period. when the server is back in service, the table  will not be the same as in the database of second server.

i want some procedure where we can check whether the 2 tables are different and if yes, merge the data such that both becomes same. structure of database, tables are exactly identical.

any help in this is appreciated.]]></description>
		<content:encoded><![CDATA[<p>hai, i have a setup where i need to store some data in 2 databases of SQL 2008 for redundant purpose. the SQL server is running in 2 different machines. both the machines collect the same data from same source (other server located in the same network) and store them. the problem i am facing is, if one server is switched OFF for say 1 hour, the server that was OFF, will not have the data of that period. when the server is back in service, the table  will not be the same as in the database of second server.</p>
<p>i want some procedure where we can check whether the 2 tables are different and if yes, merge the data such that both becomes same. structure of database, tables are exactly identical.</p>
<p>any help in this is appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Meshuris</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-403363</link>
		<dc:creator><![CDATA[Edward Meshuris]]></dc:creator>
		<pubDate>Fri, 04 Jan 2013 00:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-403363</guid>
		<description><![CDATA[Hello,
I have a small problem with the merge statement, it involves updating when no changes are present.

For example, Table A (TARGET) has 2 records, Table B (SOURCE) has 2 records. Table A has an auditing trigger set, anytime a record is updated, an audit table record is created. The tables have many fields and on update, there are many tables that are joined and the values are derived from other tables.

The records in both tables are identical, so when I run the merge command, the &#039;WHEN MATCHED THEN&#039; clause is hit, the records in the TARGET table are updated, and two new records are created in the audit table.

The knee jerk reaction is to modify the trigger, but I would like to see if I can do this within the merge command.

Thank you for your time,
Edward Meshuris]]></description>
		<content:encoded><![CDATA[<p>Hello,<br />
I have a small problem with the merge statement, it involves updating when no changes are present.</p>
<p>For example, Table A (TARGET) has 2 records, Table B (SOURCE) has 2 records. Table A has an auditing trigger set, anytime a record is updated, an audit table record is created. The tables have many fields and on update, there are many tables that are joined and the values are derived from other tables.</p>
<p>The records in both tables are identical, so when I run the merge command, the &#8216;WHEN MATCHED THEN&#8217; clause is hit, the records in the TARGET table are updated, and two new records are created in the audit table.</p>
<p>The knee jerk reaction is to modify the trigger, but I would like to see if I can do this within the merge command.</p>
<p>Thank you for your time,<br />
Edward Meshuris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P Sammy Thomte</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-378194</link>
		<dc:creator><![CDATA[P Sammy Thomte]]></dc:creator>
		<pubDate>Wed, 21 Nov 2012 17:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-378194</guid>
		<description><![CDATA[if there is same name and section *]]></description>
		<content:encoded><![CDATA[<p>if there is same name and section *</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P Sammy Thomte</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-378191</link>
		<dc:creator><![CDATA[P Sammy Thomte]]></dc:creator>
		<pubDate>Wed, 21 Nov 2012 17:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-378191</guid>
		<description><![CDATA[hi.I have only one table and column name is ID, Name ,Section, Amount i want to merge and sum the amount .update in one row and remove duplicate row..if in same there is same name and section..thanks in advance]]></description>
		<content:encoded><![CDATA[<p>hi.I have only one table and column name is ID, Name ,Section, Amount i want to merge and sum the amount .update in one row and remove duplicate row..if in same there is same name and section..thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devendra</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-359096</link>
		<dc:creator><![CDATA[Devendra]]></dc:creator>
		<pubDate>Fri, 12 Oct 2012 08:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-359096</guid>
		<description><![CDATA[When I am trying to use under given syntax it is showing an error 

MERGE StudentTotalMarks AS stm
 USING (SELECT StudentID,StudentName FROM StudentDetails) AS sd
 ON stm.StudentID = sd.StudentID
 WHEN MATCHED AND stm.StudentMarks &gt; 250 THEN DELETE
 WHEN MATCHED THEN UPDATE SET stm.StudentMarks = stm.StudentMarks + 25
 WHEN NOT MATCHED THEN
 INSERT(StudentID,StudentMarks)
 VALUES(sd.StudentID,25);
 

************************************

Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword &#039;AS&#039;.
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword &#039;AS&#039;.]]></description>
		<content:encoded><![CDATA[<p>When I am trying to use under given syntax it is showing an error </p>
<p>MERGE StudentTotalMarks AS stm<br />
 USING (SELECT StudentID,StudentName FROM StudentDetails) AS sd<br />
 ON stm.StudentID = sd.StudentID<br />
 WHEN MATCHED AND stm.StudentMarks &gt; 250 THEN DELETE<br />
 WHEN MATCHED THEN UPDATE SET stm.StudentMarks = stm.StudentMarks + 25<br />
 WHEN NOT MATCHED THEN<br />
 INSERT(StudentID,StudentMarks)<br />
 VALUES(sd.StudentID,25);</p>
<p>************************************</p>
<p>Msg 156, Level 15, State 1, Line 2<br />
Incorrect syntax near the keyword &#8216;AS&#8217;.<br />
Msg 156, Level 15, State 1, Line 3<br />
Incorrect syntax near the keyword &#8216;AS&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitin</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-355115</link>
		<dc:creator><![CDATA[nitin]]></dc:creator>
		<pubDate>Tue, 02 Oct 2012 10:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-355115</guid>
		<description><![CDATA[new concept explain by you and it is very  useful  to beginner]]></description>
		<content:encoded><![CDATA[<p>new concept explain by you and it is very  useful  to beginner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-353577</link>
		<dc:creator><![CDATA[Derek]]></dc:creator>
		<pubDate>Thu, 27 Sep 2012 14:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-353577</guid>
		<description><![CDATA[@Terrence Thanks! Appreciate it!]]></description>
		<content:encoded><![CDATA[<p>@Terrence Thanks! Appreciate it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrence Taylor</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-353431</link>
		<dc:creator><![CDATA[Terrence Taylor]]></dc:creator>
		<pubDate>Wed, 26 Sep 2012 23:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-353431</guid>
		<description><![CDATA[@Derek, I am not PinalDave, but I didnt want to leave you hanging.  There is an &quot;when not matched by&quot; option.  So:

merge into TargetTable as Target
using (
select scol1, scol2, scol3, scol4 from SourceTable
) as Source
on Target.tcol1=Source.scol1
when matched then 
  blah blah….
when not matched by Source then
   --this one is not found by source so do something
when not matched by Target then
   --this one is not found by Target so do something

Remeber to test all on a QA or Test system before implementing in a prod envoronment.]]></description>
		<content:encoded><![CDATA[<p>@Derek, I am not PinalDave, but I didnt want to leave you hanging.  There is an &#8220;when not matched by&#8221; option.  So:</p>
<p>merge into TargetTable as Target<br />
using (<br />
select scol1, scol2, scol3, scol4 from SourceTable<br />
) as Source<br />
on Target.tcol1=Source.scol1<br />
when matched then<br />
  blah blah….<br />
when not matched by Source then<br />
   &#8211;this one is not found by source so do something<br />
when not matched by Target then<br />
   &#8211;this one is not found by Target so do something</p>
<p>Remeber to test all on a QA or Test system before implementing in a prod envoronment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-352175</link>
		<dc:creator><![CDATA[Derek]]></dc:creator>
		<pubDate>Sat, 22 Sep 2012 22:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-352175</guid>
		<description><![CDATA[This MERGE really awesome!
Need to know one thing. I am using this to update data from excel files each month. Now if the user was in the database before but I get a new excel and he is not in there, I want to update the db record for him to inactive. Is there a way to do this?]]></description>
		<content:encoded><![CDATA[<p>This MERGE really awesome!<br />
Need to know one thing. I am using this to update data from excel files each month. Now if the user was in the database before but I get a new excel and he is not in there, I want to update the db record for him to inactive. Is there a way to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrence Taylor</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-350453</link>
		<dc:creator><![CDATA[Terrence Taylor]]></dc:creator>
		<pubDate>Tue, 18 Sep 2012 13:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-350453</guid>
		<description><![CDATA[My code:
merge into #TEMP_table as Target
using (
	select scol1, scol2, scol3, scol4 from test
) as Source
on Target.tcol1=Source.scol1 and Target.tcol2=source.tcol2
when matched then blah blah....

but I keep getting that it cannot insert a row that already exists (my temp tables pk violated).  
When I search my source table, group by count there are none that are listed more than one time that are unique accross scol1 and scol2.

select scol1, scol2, count(*) from  test group by scol1, scol2 having count(*)&gt;1  no rows returned

Am I doing the on correctly to match against both columns?]]></description>
		<content:encoded><![CDATA[<p>My code:<br />
merge into #TEMP_table as Target<br />
using (<br />
	select scol1, scol2, scol3, scol4 from test<br />
) as Source<br />
on Target.tcol1=Source.scol1 and Target.tcol2=source.tcol2<br />
when matched then blah blah&#8230;.</p>
<p>but I keep getting that it cannot insert a row that already exists (my temp tables pk violated).<br />
When I search my source table, group by count there are none that are listed more than one time that are unique accross scol1 and scol2.</p>
<p>select scol1, scol2, count(*) from  test group by scol1, scol2 having count(*)&gt;1  no rows returned</p>
<p>Am I doing the on correctly to match against both columns?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jibin James</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-341023</link>
		<dc:creator><![CDATA[Jibin James]]></dc:creator>
		<pubDate>Wed, 05 Sep 2012 06:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-341023</guid>
		<description><![CDATA[very thanks]]></description>
		<content:encoded><![CDATA[<p>very thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Banu Senthilkumar</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-314189</link>
		<dc:creator><![CDATA[Banu Senthilkumar]]></dc:creator>
		<pubDate>Mon, 16 Jul 2012 18:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-314189</guid>
		<description><![CDATA[Hi Pinal,

I want to update a table which is not the source/target table in &quot;when not matched&quot; section using update query. is that possible?



For example  - 

MERGE Target AS T
USING Source AS S
ON (T.EmployeeID = S.EmployeeID) 
WHEN NOT MATCHED 
      THEN UPDATE  SET T.EmployeeName = S.EmployeeName
WHEN MATCHED 
      THEN DELETE]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I want to update a table which is not the source/target table in &#8220;when not matched&#8221; section using update query. is that possible?</p>
<p>For example  &#8211; </p>
<p>MERGE Target AS T<br />
USING Source AS S<br />
ON (T.EmployeeID = S.EmployeeID)<br />
WHEN NOT MATCHED<br />
      THEN UPDATE  SET T.EmployeeName = S.EmployeeName<br />
WHEN MATCHED<br />
      THEN DELETE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandraprakash</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-308808</link>
		<dc:creator><![CDATA[Chandraprakash]]></dc:creator>
		<pubDate>Tue, 03 Jul 2012 11:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-308808</guid>
		<description><![CDATA[Hi,
I have implemented SSIS package where i have used CDC feature to do insert/update/delete in table. can you please help me if we will go with Merge feature then will it make any difference in terms of performance.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have implemented SSIS package where i have used CDC feature to do insert/update/delete in table. can you please help me if we will go with Merge feature then will it make any difference in terms of performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yashpal</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-283177</link>
		<dc:creator><![CDATA[Yashpal]]></dc:creator>
		<pubDate>Wed, 09 May 2012 07:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-283177</guid>
		<description><![CDATA[Your blog is very helpfull,

One thing should include into article that we can not use alias name with column names in Insert statement :
WHEN NOT MATCHED THEN
INSERT(stm.StudentID,stm.StudentMarks)
VALUES(sd.StudentID,25);

and if we will do this we will get following error:
&quot;The insert column list used in the MERGE statement cannot contain multi-part identifiers. Use single part identifiers instead.&quot;]]></description>
		<content:encoded><![CDATA[<p>Your blog is very helpfull,</p>
<p>One thing should include into article that we can not use alias name with column names in Insert statement :<br />
WHEN NOT MATCHED THEN<br />
INSERT(stm.StudentID,stm.StudentMarks)<br />
VALUES(sd.StudentID,25);</p>
<p>and if we will do this we will get following error:<br />
&#8220;The insert column list used in the MERGE statement cannot contain multi-part identifiers. Use single part identifiers instead.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swetha</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-282862</link>
		<dc:creator><![CDATA[Swetha]]></dc:creator>
		<pubDate>Tue, 08 May 2012 06:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-282862</guid>
		<description><![CDATA[Hi Asha,

Use merge statement in stored procedure and execute the stored procedure from .net.

Swetha]]></description>
		<content:encoded><![CDATA[<p>Hi Asha,</p>
<p>Use merge statement in stored procedure and execute the stored procedure from .net.</p>
<p>Swetha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asha Bhatt</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-282850</link>
		<dc:creator><![CDATA[Asha Bhatt]]></dc:creator>
		<pubDate>Tue, 08 May 2012 05:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-282850</guid>
		<description><![CDATA[Hi,

This is really nice post , but please tell me how can i call the marge statement query from .net.

Thanks and Regards,
Asha Bhatt]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is really nice post , but please tell me how can i call the marge statement query from .net.</p>
<p>Thanks and Regards,<br />
Asha Bhatt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-265323</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 12:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-265323</guid>
		<description><![CDATA[Are you using version from 2008?]]></description>
		<content:encoded><![CDATA[<p>Are you using version from 2008?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-265275</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 10:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-265275</guid>
		<description><![CDATA[You can alos use a temporary table too]]></description>
		<content:encoded><![CDATA[<p>You can alos use a temporary table too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurav ghosh</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-262800</link>
		<dc:creator><![CDATA[saurav ghosh]]></dc:creator>
		<pubDate>Wed, 14 Mar 2012 05:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-262800</guid>
		<description><![CDATA[Does merge operator works with only inner joins or we can use it with left , right and self join....please advice.]]></description>
		<content:encoded><![CDATA[<p>Does merge operator works with only inner joins or we can use it with left , right and self join&#8230;.please advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swetha</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-262045</link>
		<dc:creator><![CDATA[Swetha]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 10:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-262045</guid>
		<description><![CDATA[Hi Nagendra,

Are source and destination database are same?

Swetha]]></description>
		<content:encoded><![CDATA[<p>Hi Nagendra,</p>
<p>Are source and destination database are same?</p>
<p>Swetha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagendra Gubbal</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-262023</link>
		<dc:creator><![CDATA[Nagendra Gubbal]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 09:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-262023</guid>
		<description><![CDATA[i used table varible in a SP to tempararly store the data  , to compare using Merge statement , is there any alternate solution for this]]></description>
		<content:encoded><![CDATA[<p>i used table varible in a SP to tempararly store the data  , to compare using Merge statement , is there any alternate solution for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagendra Gubbal</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-262019</link>
		<dc:creator><![CDATA[Nagendra Gubbal]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 09:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-262019</guid>
		<description><![CDATA[Hi Pinal 
is it possible to use Merge statement in SSIS package Dataflow i mean, in 
OLE DB command transformation]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal<br />
is it possible to use Merge statement in SSIS package Dataflow i mean, in<br />
OLE DB command transformation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swetha</title>
		<link>http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/#comment-259585</link>
		<dc:creator><![CDATA[Swetha]]></dc:creator>
		<pubDate>Mon, 05 Mar 2012 03:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=881#comment-259585</guid>
		<description><![CDATA[Rakshith,

I copied your code and tried parsing ino SQL query. But there was an error as mentioned by you. 

I then replaced the single &quot; &#039; &quot; from the query by typing the same from key board. It worked fine.

When I posted the comment and copied my code from this blog ( from my previous comment) and tried parsing . I got the same error.

So, If you are copying and pasting the code, make sure to replace single apostropes by typing from the key board.

Best Regards,
Swetha]]></description>
		<content:encoded><![CDATA[<p>Rakshith,</p>
<p>I copied your code and tried parsing ino SQL query. But there was an error as mentioned by you. </p>
<p>I then replaced the single &#8221; &#8216; &#8221; from the query by typing the same from key board. It worked fine.</p>
<p>When I posted the comment and copied my code from this blog ( from my previous comment) and tried parsing . I got the same error.</p>
<p>So, If you are copying and pasting the code, make sure to replace single apostropes by typing from the key board.</p>
<p>Best Regards,<br />
Swetha</p>
]]></content:encoded>
	</item>
</channel>
</rss>
