﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Glen Schwickerath  / Dynamic SQL Merge / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 16:22:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>Thank you very much for your kind feedback.  Your comments are correct regarding the "link".  The actual usage for this was originally to an AS400 linked server.As so often happens when you provide a tool which makes coding easier, I've now had to re-train folks so that they don't over-use the MERGE statement:)</description><pubDate>Fri, 15 Mar 2013 08:15:27 GMT</pubDate><dc:creator>Glen Schwickerath</dc:creator></item><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>Excellent work.   Never mind the comment about this being a solution looking for a problem, this proc was exactly what I needed.   We have lots of different reference data tables what I want to keep "relatively" in sync and this gives me 99% of what I need.  The other 1% I can tweak the proc to make happen.   One thing, in your example 2, merging from a linked server, I believe you need to change the @srcType value sent in to 'LINK' from 'SQL'.   That's what I needed to do in order to pull from the linked server.   It wouldn't work otherwise.</description><pubDate>Fri, 15 Mar 2013 07:43:52 GMT</pubDate><dc:creator>chris.stamand</dc:creator></item><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>Thank you so much for posting this!:-)</description><pubDate>Wed, 08 Apr 2009 00:56:20 GMT</pubDate><dc:creator>brendan.hargie</dc:creator></item><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>Nice Glen :)I just posted a similar SP - just went about a little different.....[url=http://www.sqlservercentral.com/scripts/SQL+2008/66507/]http://www.sqlservercentral.com/scripts/SQL+2008/66507/[/url]</description><pubDate>Tue, 07 Apr 2009 09:39:03 GMT</pubDate><dc:creator>Tommy Bollhofer</dc:creator></item><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>I think this procedure is impressively well done.  With that said, It does seem to be a bit of a solution looking for a problem.  Writing the merge statement directly is not at all challenging and it seems easier to simply do that then learn the nuances of this procedure, especially since writing it directly permits it to be made more nuanced if so desired.</description><pubDate>Tue, 07 Apr 2009 09:34:27 GMT</pubDate><dc:creator>timothyawiseman</dc:creator></item><item><title>RE: Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>What about using of tablediff utility?</description><pubDate>Tue, 07 Apr 2009 05:53:22 GMT</pubDate><dc:creator>leon-927648</dc:creator></item><item><title>Dynamic SQL Merge</title><link>http://www.sqlservercentral.com/Forums/Topic691709-1528-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/T-SQL/66066/"&gt;Dynamic SQL Merge&lt;/A&gt;[/B]</description><pubDate>Tue, 07 Apr 2009 00:03:32 GMT</pubDate><dc:creator>Glen Schwickerath</dc:creator></item></channel></rss>