<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Key2 Consulting Blogs &#187; Julie Smith</title>
	<atom:link href="http://key2consulting.com/Blogs/author/julie-smith/feed/" rel="self" type="application/rss+xml" />
	<link>http://key2consulting.com/Blogs</link>
	<description>BI, Data Warehousing, SharePoint and .NET</description>
	<lastBuildDate>Mon, 30 Apr 2012 17:47:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The Vaguest Error Message I Ever Saw in Integration Services</title>
		<link>http://key2consulting.com/Blogs/jsmith/2011/04/14/the-vaguest-error-message-i-ever-saw-in-integration-services/</link>
		<comments>http://key2consulting.com/Blogs/jsmith/2011/04/14/the-vaguest-error-message-i-ever-saw-in-integration-services/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 00:13:36 +0000</pubDate>
		<dc:creator>Julie Smith</dc:creator>
				<category><![CDATA[Datachix1]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[Internal Query Processor Error: The query processor encountered an unexpected error during execution]]></category>
		<category><![CDATA[Julie Smith SQL Server]]></category>
		<category><![CDATA[Julie Smith SSIS]]></category>

		<guid isPermaLink="false">http://7.14</guid>
		<description><![CDATA[There was this one time when I was working on a project and we were trying to load a datawarehouse. I came in one morning to find a team member staring at a failed SSIS package with this error message at a Data Flow Task, specifically coming from the query in the ole db source: [...]]]></description>
			<content:encoded><![CDATA[<p>There was this one time when I was working on a project and we were trying to load a datawarehouse.   I came in one <a href="http://key2consulting.com/Blogs/jsmith/files/2011/04/imspeaking.jpg"><img src="http://key2consulting.com/Blogs/jsmith/files/2011/04/imspeaking.jpg" alt="" width="180" height="180" class="alignright size-full wp-image-23" /></a> morning to find a team member staring at a failed SSIS package with this error message at a Data Flow Task, specifically coming from the query in the ole db source:</p>
<blockquote><p>[SRC_OLEDB ] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0×80004005.</p>
<p>An OLE DB record is available.  Source: “Microsoft SQL Server Native Client 10.0″  Hresult: 0×80004005  Description: “Internal Query Processor Error: The query processor encountered an unexpected error during execution.”.
</p></blockquote>
<p>Vague much?</p>
<p>The package had been run several times (read at least 10) with no changes to its code.  The database had not grown in size.  What was going on?  Running the query inside sql server management studio initially returned a result set without the error, but the error returned when the query was executed from inside SSIS.  We scratched our heads and kept troubleshooting.  Eventually, the query returned the error inside SSMS as well as from SSIS.</p>
<p>We tried cycling the service on the box.  No dice.  Same bat error same bat location in the package.  We googled the error message and found more vagueness– no real explanations or solutions.  It seems that this error message is in fact as generic and milque toast as it sounds.  One thread on the forums seemed to unearth  a ghastly bug that required the help of a Microsoft Trouble ticket to resolve.  This sentiment was echoed by two more threads.  I was feeling queasy at the thought of having to go through even finding the contact who would permit me to make the call to Microsoft, when another thread in the forums hinted in a different direction, which resonated with me.  This forum poster claimed no “aha” moment as to what the error meant, but did state that he had solved the problem by rebuilding the indexes on troublesome tables.</p>
<p>Usually you suspect fragmentation when a query which has been performing well stops performing well.  One usually sees degradation, not errors.  I knew that we had indeed been updating these tables.  A Lot.  (NOT a good idea in this specific case, but these were desperate times).  What’s more, I knew that the updates had not been highly anticipated (again, times were hard–this was supposed to be a fresh load of a new warehouse) or planned for as far as indexing strategies.  Our Fill Factors on the indexes were all the default—100.</p>
<p>So I checked the fragmentation on the indexes of the two largest and most likely suspect indexes:  99.7%.  Wow.  Anything over 30% with a page number for the table of at least 1000 pages is a problem.  Here we were at almost 100% fragmented (and the tables were very large, way over 1000 pages).  That’s both impressive and frightening.  I rebuilt those indexes, (which took some time) and we were able to execute the SSIS package without the error.</p>
<p>Basically our server was having a <a href="http://en.wikipedia.org/wiki/Roberto_Dur%C3%A1n">Roberto Duran</a> ‘<a href="http://en.wikipedia.org/wiki/No_M%C3%A1s_Fight">no mas</a>’ moment.  The indexes, having been beaten to a bloody 99.7% fragmented pulp simply couldn’t go on.  Instead of yelling no mas at the ref, the engine reported a vague error, threw in the towel and sat down in the corner.  Luckily the <a href="http://www.faqs.org/sports-science/Ba-Ca/Boxing-Corner-Men.html">corner man</a> (me) was able to fix it up with some Dristan , q-tips and various coagulants (I rebuilt the indexes).</p>
<p>The End of the Story.</p>
<p>Further reading/learning:  I have two ways of checking fragmentation on indexes, DBCC ShowContig and using the sys.dm_db_index_physical_stats DMV (which stands for Dynamic Management View, and was introduced with SQL Server 2005).  <a href="http://blogs.msdn.com/b/jorgepc/archive/2007/12/09/how-to-check-fragmentation-on-sql-server-2005.aspx">Here </a>is some info on how to use both methods.<a href="http://www.flickr.com/photos/jtcatbagan/1899060690/sizes/z/in/photostream/"><img src="http://key2consulting.com/Blogs/jsmith/files/2011/04/cornerman-300x294.jpg" alt="http://www.flickr.com/photos/jtcatbagan/1899060690/sizes/z/in/photostream/" width="300" height="294" class="alignright size-medium wp-image-19" /></a></p>
<p>And by the way, I am speaking at SQL Rally in Orlando in May!  If you are going, please find me and introduce yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://key2consulting.com/Blogs/jsmith/2011/04/14/the-vaguest-error-message-i-ever-saw-in-integration-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Atlanta BI Chapter of PASS meeting March 28, 2011</title>
		<link>http://key2consulting.com/Blogs/jsmith/2011/04/01/atlanta-bi-chapter-of-pass-meeting-march-28-2011/</link>
		<comments>http://key2consulting.com/Blogs/jsmith/2011/04/01/atlanta-bi-chapter-of-pass-meeting-march-28-2011/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 14:47:04 +0000</pubDate>
		<dc:creator>Julie Smith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://7.9</guid>
		<description><![CDATA[Thanks for attending! Here are the slides and code. Download the zip which is called AtlantaSIG. –Julie]]></description>
			<content:encoded><![CDATA[<p>Thanks for attending!  <a href="http://cid-62017692a2d952f3.office.live.com/browse.aspx/UpAndRunning">Here </a>are the slides and code.  Download the zip which is called AtlantaSIG.</p>
<p>–Julie</p>
]]></content:encoded>
			<wfw:commentRss>http://key2consulting.com/Blogs/jsmith/2011/04/01/atlanta-bi-chapter-of-pass-meeting-march-28-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

