<?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/"
		>
<channel>
	<title>Comments on: Influencing the Execution Plan</title>
	<atom:link href="http://clay.lenharts.net/blog/2008/04/14/influencing-the-execution-plan/feed/" rel="self" type="application/rss+xml" />
	<link>http://clay.lenharts.net/blog/2008/04/14/influencing-the-execution-plan/</link>
	<description>A blog on .Net and SQL Server</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:44:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jim</title>
		<link>http://clay.lenharts.net/blog/2008/04/14/influencing-the-execution-plan/comment-page-1/#comment-15338</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 24 Mar 2009 16:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://clay.lenharts.net/blog/?p=36#comment-15338</guid>
		<description>Thanks so much for this. I have been trouble shooting a bug a few days now and this solved my problem. I was loading data from an Excel 2007 file into a SQL Server table. When I started appending data to the table using an insert statement I couldn&#039;t get the new data to return in some of my queries. After messing with the date formats and join formats I realized the execution plans were different (despite the data sets having roughly the same number of rows). The appended data used nested loops in the execution plans whereas the data imported did not. Its probably something to do with the indexes but your recommendation to use the OPTION worked like a charm! Thanks for the post!</description>
		<content:encoded><![CDATA[<p>Thanks so much for this. I have been trouble shooting a bug a few days now and this solved my problem. I was loading data from an Excel 2007 file into a SQL Server table. When I started appending data to the table using an insert statement I couldn&#8217;t get the new data to return in some of my queries. After messing with the date formats and join formats I realized the execution plans were different (despite the data sets having roughly the same number of rows). The appended data used nested loops in the execution plans whereas the data imported did not. Its probably something to do with the indexes but your recommendation to use the OPTION worked like a charm! Thanks for the post!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

