<?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>A Developer&#039;s Blog &#187; bug</title>
	<atom:link href="http://blog.hoegaerden.be/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hoegaerden.be</link>
	<description>SQL Server, BI, .NET, IT and anything else I have been playing with.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:15:30 +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>Posting An Issue To Microsoft Connect</title>
		<link>http://blog.hoegaerden.be/2012/01/04/posting-an-issue-to-microsoft-connect/</link>
		<comments>http://blog.hoegaerden.be/2012/01/04/posting-an-issue-to-microsoft-connect/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 11:21:05 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Microsoft Connect]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2012/01/04/posting-an-issue-to-microsoft-connect/</guid>
		<description><![CDATA[I’ve been a user of the Microsoft Connect site for several years now.  A regular user who now and then casts an Up vote or clicks the “I can reproduce it!” link.  Not as a content poster.  Well, I did post some comments in the past, but I never filed an issue or suggestion. So, [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been a user of the <a title="Microsoft Connect" href="https://connect.microsoft.com/" target="_blank">Microsoft Connect</a> site for several years now.  A regular user who now and then casts an Up vote or clicks the “I can reproduce it!” link.  Not as a content poster.  Well, I did post some comments in the past, but I never filed an issue or suggestion.</p>
<p>So, a couple of weeks ago I decided to post my first bug to Microsoft Connect, an issue which I had discovered in SQL Server 2012 RC0.  Because this process took me more time than I’d expected, I‘m now blogging about my experience.</p>
<p>The hardest part about the whole experience was finding the actual page that needs to be used to enter and submit the content.</p>
<h2>Submitting Content To Microsoft Connect</h2>
<p>Are you in for a ride on the Connect site?  Here we go!</p>
<h3>Step 1: Search For Your Product on The Connect Home Page</h3>
<h3><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Enter a search term on Microsoft Connect to locate your favorite product" src="http://blog.hoegaerden.be/wp-content/uploads/image439.png" border="0" alt="Enter a search term on Microsoft Connect to locate your favorite product" width="700" height="430" /></h3>
<p>On the Home page, enter a search term with which you can locate your favorite product.  If you’re not signed in yet, do that first.</p>
<h3>Step 2: Click To Participate</h3>
<p><a href="http://blog.hoegaerden.be/wp-content/uploads/image440.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="On the search results, click the Participate link next to your favorite product." src="http://blog.hoegaerden.be/wp-content/uploads/image_thumb104.png" border="0" alt="On the search results, click the Participate link next to your favorite product." width="700" height="261" /></a></p>
<p>Once the search engine has produced the output, locate your favorite product and click the <strong>Participate</strong> action next to it.</p>
<h3>Step 3: Submit Product Feedback</h3>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="Click Submit Product Feedback to submit product feedback." src="http://blog.hoegaerden.be/wp-content/uploads/image441.png" border="0" alt="Click Submit Product Feedback to submit product feedback." width="700" height="692" /></p>
<p>After clicking Participate, the following overwhelming screen appears.  The link that you’re looking for is called <strong>Submit Product Feedback</strong>.</p>
<h3>Step 4: The Feedback Center</h3>
<p>After clicking Submit Product Feedback, you end up at the <a title="Feedback Center" href="https://connect.microsoft.com/SQLServer/Feedback" target="_blank">Feedback Center</a>.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Do not use the Submit link, use Search first to check if your issue already exists." src="http://blog.hoegaerden.be/wp-content/uploads/image442.png" border="0" alt="Do not use the Submit link, use Search first to check if your issue already exists." width="700" height="557" /></p>
<p>Looking at the screen above, you’d think that the yellow Submit Feedback button can be used to open the page where you’d need to enter the bug details.  Well, it doesn’t…</p>
<p>You need to search for your issue first, to ensure it doesn’t exist already.</p>
<h3>Step 5: The Submit Feedback Button Has Been Found, Eureka!</h3>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="The Submit Feedback button on the Product Search Results screen." src="http://blog.hoegaerden.be/wp-content/uploads/image443.png" border="0" alt="The Submit Feedback button on the Product Search Results screen." width="700" height="259" /></p>
<p>After you’ve performed the search for your issue, you get to the following page above.  Finally, on that page you can click a real <strong>Submit Feedback</strong> button that will bring you to the Select Feedback Form page.</p>
<h3>Step 6: Select Your Feedback Form Of Choice</h3>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Select SQL Server Bug Form to file a SQL Server issue, or SQL Server Suggestion Form for a suggestion." src="http://blog.hoegaerden.be/wp-content/uploads/image444.png" border="0" alt="Select SQL Server Bug Form to file a SQL Server issue, or SQL Server Suggestion Form for a suggestion." width="550" height="198" /></p>
<p>On the <a title="Select Feedback Form" href="https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx" target="_blank">Select Feedback Form</a> page, select <strong>SQL Server Bug Form</strong> to file a SQL Server issue, or select<strong> SQL Server Suggestion Form</strong> to enter a suggestion.</p>
<h3>Step 7: Fill Out The Textboxes</h3>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="The &quot;Submit A Bug&quot; Form for SQL Server." src="http://blog.hoegaerden.be/wp-content/uploads/image445.png" border="0" alt="The &quot;Submit A Bug&quot; Form for SQL Server." width="700" height="529" /></p>
<p>Finally, the page we’ve been trying to locate when we started the adventure, quest accomplished!  With this new knowledge, we can now skip directly to step 6 through the following link: <a title="Select Feedback Form" href="https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx" target="_blank">Select Feedback Form</a></p>
<p><em>Disclaimer: please ensure that you’re not creating duplicate bugs or suggestions, but use whatever search engine your prefer to achieve that goal!</em></p>
<p>So, here’s my New Year’s present to all of you!  And remember: have fun!</p>
<p>Valentino.</p>
<p><strong>References</strong></p>
<p><a title="Microsoft Connect" href="https://connect.microsoft.com/" target="_blank">Microsoft Connect</a></p>
<p><a title="Feedback Center" href="https://connect.microsoft.com/SQLServer/Feedback" target="_blank">Feedback Center</a></p>
<p><a title="Select Feedback Form" href="https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx" target="_blank">Select Feedback Form</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2012%2F01%2F04%2Fposting-an-issue-to-microsoft-connect%2F&amp;title=Posting%20An%20Issue%20To%20Microsoft%20Connect" id="wpa2a_2"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2012/01/04/posting-an-issue-to-microsoft-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSMS Showing Incorrect Version Numbers In Object Explorer</title>
		<link>http://blog.hoegaerden.be/2010/01/10/ssms-showing-incorrect-version-numbers-in-object-explorer/</link>
		<comments>http://blog.hoegaerden.be/2010/01/10/ssms-showing-incorrect-version-numbers-in-object-explorer/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 23:21:23 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Management Studio]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Integration Services 2008]]></category>
		<category><![CDATA[Reporting Services 2008]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2010/01/10/ssms-showing-incorrect-version-numbers-in-object-explorer/</guid>
		<description><![CDATA[Ever since I upgraded to SQL Server 2008 Service Pack 1 I noticed that the Management Studio was reporting incorrect version numbers when connected to Integration or Reporting Services.&#160; This incorrect version number is located to the right of the server instance in the Object Explorer. As usual, a picture says so much more than [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I upgraded to SQL Server 2008 Service Pack 1 I noticed that the Management Studio was reporting incorrect version numbers when connected to Integration or Reporting Services.&#160; This incorrect version number is located to the right of the server instance in the Object Explorer.</p>
<p>As usual, a picture says so much more than … :</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Object Explorer showing wrong version numbers" border="0" alt="Object Explorer showing wrong version numbers" src="http://blog.hoegaerden.be/wp-content/uploads/image139.png" width="436" height="116" /> </p>
<p>As I have <a title="10.0.2531.0" href="http://blog.hoegaerden.be/2009/04/12/10025310/" target="_blank">posted earlier</a>, 10.0.2531 is the version number for SP1, while 10.0.1600 is the original RTM version number.</p>
<p>I never really spent time looking for an answer to this.&#160; It was obviously a bug but I could live with it and someone else would probably already have filed it as being a bug.&#160; So recently I came across <a title="SSIS 2008 - Beware of incorrect version stamp in SSMS" href="http://www.ssistalk.com/2010/01/04/ssis-2008-beware-of-incorrect-version-stamp-in-ssms/" target="_blank">a post by Phil Brammer</a> that mentioned this issue.&#160; This post got a comment from <a title="SSIS Team Blog - A blog about SQL Server Integration Services (SSIS) from a developer on the team." href="http://blogs.msdn.com/mattm/" target="_blank">Matt Masson</a>, a developer on the SSIS team.&#160; Have a look at the comment but in short: the version numbers that are being shown in the Object Explorer are actually the version numbers of the service’s .exe file!&#160; And SSMS is now showing the wrong number because these files didn’t get an update in SP1.</p>
<p>After a little search I found the <a title="Incorrect Version (build) number in SSMS with SSRS and SSIS" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=422562&amp;wa=wsignin1.0" target="_blank">bug report on Microsoft Connect</a>, reported on March 11, 2009, by <a title="Dan English&#39;s BI Blog" href="http://denglishbi.spaces.live.com/" target="_blank">Dan English</a>.&#160; Its status is Fixed but it seems that it isn’t.&#160; At least, looking at the comments, <a title="Cumulative Update Package 5 for SQL Server 2008 Service Pack 1" href="http://support.microsoft.com/kb/975977/LN/" target="_blank">CU5 (Cumulative Update) for SQL Server 2008 SP1</a> is still showing the problem.&#160; So I guess you could go over to the Connect page and click on that Yes button if you’re interested in seeing this fixed.&#160; After all, it could be quite misleading to novice DB guys and gals…</p>
<p>On this same subject, there’s another <a title="Reporting Services: What’s my version?" href="http://blogs.msdn.com/psssql/archive/2009/09/30/reporting-services-what-s-my-version.aspx" target="_blank">interesting post by Adam W. Saxton</a>, a member of the Microsoft SQL Server Escalation Services Team.&#160; In this post he takes a closer look at the SQL Server 2008 Reporting Services version number after having installed CU2.</p>
<p><strong>Conclusion:</strong> if you need to find out what version your server is running, do not rely on the version numbers that you see in the Object Explorer.&#160; As Adam explained, one way is to look at the version numbers of the files that were included in the upgrade.&#160; But that may a bit of an overkill.&#160; My favorite way, assuming that all components of the SQL Server installation have been upgraded to the same version, is to use the following query:</p>
<div>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">SELECT</span> @@VERSION;</pre>
</div>
<p>&#160;</p>
<p>On my machine that comes back with the following result:</p>
<blockquote>
<p>Microsoft SQL Server 2008 (SP1) &#8211; 10.0.2531.0 (Intel X86)&#160;&#160; Mar 29 2009 10:27:29&#160;&#160; Copyright (c) 1988-2008 Microsoft Corporation&#160; Developer Edition on Windows NT 5.1 &lt;X86&gt; (Build 2600: Service Pack 3) </p>
</blockquote>
<p>And remember, have fun!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2010%2F01%2F10%2Fssms-showing-incorrect-version-numbers-in-object-explorer%2F&amp;title=SSMS%20Showing%20Incorrect%20Version%20Numbers%20In%20Object%20Explorer" id="wpa2a_4"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2010/01/10/ssms-showing-incorrect-version-numbers-in-object-explorer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Report Builder 2.0: Cannot switch data source</title>
		<link>http://blog.hoegaerden.be/2009/09/12/report-builder-2-0-cannot-switch-data-source/</link>
		<comments>http://blog.hoegaerden.be/2009/09/12/report-builder-2-0-cannot-switch-data-source/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 08:43:53 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Report Builder 2.0]]></category>
		<category><![CDATA[Report Builder 3.0]]></category>
		<category><![CDATA[Reporting Services 2008]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2009/09/12/report-builder-2-0-cannot-switch-data-source/</guid>
		<description><![CDATA[I came across an issue when playing around with Report Builder 2.0.  I had created a report using an embedded data source.  Once I’d published the report to the report server, I couldn’t get it to run anymore.  Instead it gave me the following error: This report cannot be run in report builder because it [...]]]></description>
			<content:encoded><![CDATA[<p>I came across an issue when playing around with Report Builder 2.0.  I had created a report using an embedded data source.  Once I’d published the report to the report server, I couldn’t get it to run anymore.  Instead it gave me the following error:</p>
<blockquote><p>This report cannot be run in report builder because it contains one or more embedded data sources with credential options that are not supported.  Instead of embedded data sources use shared data sources or save and view the report on the server.</p></blockquote>
<p>Okay, no problem I thought, let’s just create a shared data source and switch to that one then.  So I opened up the Data Source Properties in Report Builder and selected the <strong>Use a shared connection or report model</strong> radio button.</p>
<p>Unfortunately, when running the report it threw me that same error?!  And when I open the Data Source properties again, my change was undone!  It was still using the embedded data source.</p>
<p>As far as I’m concerned that should be a bug.</p>
<p>The only way that I could switch my data source to a shared connection was by creating a new data source, which means you also need to move all datasets connected to the original data source.</p>
<p>Quick tip: if you first rename the original data source and datasets to something like srcMyDataset_OLD, you can give the correct name to the new one straightaway.</p>
<p>So I guess that’s another workaround on my list <img src='http://blog.hoegaerden.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>This issue was encountered while using Report Builder 2.0 (10.0.2531.0).  I tried to reproduce it using Report Builder 3.0 (10.50.1092.20 – that’s the version of the SQL Server 2008 R2 August CTP) and I couldn’t.  Which means it has been fixed.  Good on you Microsoft!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2009%2F09%2F12%2Freport-builder-2-0-cannot-switch-data-source%2F&amp;title=Report%20Builder%202.0%3A%20Cannot%20switch%20data%20source" id="wpa2a_6"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2009/09/12/report-builder-2-0-cannot-switch-data-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The value provided for the report parameter is not valid for its type</title>
		<link>http://blog.hoegaerden.be/2009/08/26/the-value-provided-for-the-report-parameter-is-not-valid-for-its-type/</link>
		<comments>http://blog.hoegaerden.be/2009/08/26/the-value-provided-for-the-report-parameter-is-not-valid-for-its-type/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 19:06:13 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2009/08/26/the-value-provided-for-the-report-parameter-is-not-valid-for-its-type/</guid>
		<description><![CDATA[While building parameterized reports in SQL Server Reporting Services 2005 you may come across the following error when viewing the report in Preview. An error occurred during local report processing. The value provided for the report parameter ‘YourParameter’ is not valid for its type. I encountered this error even though I had not specified a [...]]]></description>
			<content:encoded><![CDATA[<p>While building parameterized reports in SQL Server Reporting Services 2005 you may come across the following error when viewing the report in Preview.</p>
<blockquote><p>An error occurred during local report processing.</p>
<p>The value provided for the report parameter ‘YourParameter’ is not valid for its type.</p></blockquote>
<p>I encountered this error even though I had not specified a default value for the parameter.  So how can it be not valid if it doesn’t exist?</p>
<p>I found a perfect solution in <a title="How do I resolve the error &quot;the value provided for the report parameter is not valid for its type&quot;?" href="http://www.datagonewild.com/ssrs-help/errors-and-known-bugs/how-do-i-resolve-the-error-the-value-provided-for-the-report.html" target="_blank">this little article</a>.</p>
<p>Apparently it has something to do with the <strong>Allow blank value</strong> checkbox.  In my report the data type for my parameter was Integer.  And as explained in the mentioned article, the <strong>Allow blank value</strong> checkbox is checked and greyed out.  Luckily the little trick of switching to String, unchecking the checkbox and switching back to Integer solves the error.</p>
<p>But why?  How come that an error occurs due to a setting that is greyed out?  A greyed out setting, doesn’t that mean that its value is not applicable in combination with the other settings?  Apparently not.  Well, I guess that’s a bug then, right?</p>
<p>If someone has a good explanation on this behaviour don’t hesitate to post a comment!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2009%2F08%2F26%2Fthe-value-provided-for-the-report-parameter-is-not-valid-for-its-type%2F&amp;title=The%20value%20provided%20for%20the%20report%20parameter%20is%20not%20valid%20for%20its%20type" id="wpa2a_8"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2009/08/26/the-value-provided-for-the-report-parameter-is-not-valid-for-its-type/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>BUG: Foreach Loop Container</title>
		<link>http://blog.hoegaerden.be/2009/06/09/bug-foreach-loop-container/</link>
		<comments>http://blog.hoegaerden.be/2009/06/09/bug-foreach-loop-container/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:09:27 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Integration Services]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2009/06/09/bug-foreach-loop-container/</guid>
		<description><![CDATA[If you’re using Integration Services 2008 and the Foreach Loop Container in the Control Flow, you’ll very likely encounter this bug. The Foreach Loop has several enumerators available.  By default it selects the Foreach File Enumerator.  However, as the screenshot below shows, there’s no way to configure it – the Enumerator configuration group just shows [...]]]></description>
			<content:encoded><![CDATA[<p>If you’re using Integration Services 2008 and the Foreach Loop Container in the Control Flow, you’ll very likely encounter this bug.</p>
<p>The Foreach Loop has several enumerators available.  By default it selects the Foreach File Enumerator.  However, as the screenshot below shows, there’s no way to configure it – the Enumerator configuration group just shows blank space.</p>
<p><a href="http://blog.hoegaerden.be/wp-content/uploads/image23.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Foreach Loop Editor with empty Enumerator configuration" src="http://blog.hoegaerden.be/wp-content/uploads/image-thumb12.png" border="0" alt="Foreach Loop Editor with empty Enumerator configuration" width="494" height="463" /></a></p>
<p>This phenomenon is caused by a bug which <a title="SSIS - Foreach loop editor loading wrong configuration control during initialization" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=363373" target="_blank">has been reported on Microsoft Connect</a>.  The workaround, if you really need the File Enumerator, is to select another enumerator first and then switch back to the File Enumerator.  You’ll notice that the regular controls show up and on you go, define that folder name!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2009%2F06%2F09%2Fbug-foreach-loop-container%2F&amp;title=BUG%3A%20Foreach%20Loop%20Container" id="wpa2a_10"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2009/06/09/bug-foreach-loop-container/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stop that MDX query!</title>
		<link>http://blog.hoegaerden.be/2009/01/09/stop-that-mdx-query/</link>
		<comments>http://blog.hoegaerden.be/2009/01/09/stop-that-mdx-query/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 19:12:12 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[Management Studio]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[MDX]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SSAS]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2009/01/09/stop-that-mdx-query/</guid>
		<description><![CDATA[Have you ever had the situation that you wrote an MDX query to get some data out of a cube in Management Studio and executed it and waited and waited and the query never seems to end so you decide to cancel it so you click the red square button and then you wait and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had the situation that you wrote an MDX query to get some data out of a cube in Management Studio and executed it and waited and waited and the query never seems to end so you decide to cancel it so you click the red square button and then you wait and wait and wait some more and&#8230;.  Well, it&#8217;s a bug.</p>
<p>And the worst part of it, in my opinion, is that, even when you close your client connection to Analysis Services, the query keeps running on the server consuming CPU and memory and will finally take it down.</p>
<p>The good part is that Microsoft has fixed it in Cumulative Update 2 for Service Pack 2 for SQL Server 2005.  And now of course SP3 can be used as well to fix this situation.</p>
<p>The bug is described here: <a href="http://support.microsoft.com/kb/935832" target="_blank">http://support.microsoft.com/kb/935832</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2009%2F01%2F09%2Fstop-that-mdx-query%2F&amp;title=Stop%20that%20MDX%20query%21" id="wpa2a_12"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2009/01/09/stop-that-mdx-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Performance Dashboard Issue</title>
		<link>http://blog.hoegaerden.be/2008/12/21/a-performance-dashboard-issue/</link>
		<comments>http://blog.hoegaerden.be/2008/12/21/a-performance-dashboard-issue/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 14:01:16 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Performance Tuning]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2008/12/21/a-performance-dashboard-issue/</guid>
		<description><![CDATA[Since SP2 for SQL Server 2005 we have some Standard Reports available when right-clicking either server or database in the Object Explorer in Management Studio.&#160; One of my favorites is the Index Usage Statistics report. If you have the task to optimize performance of your server or database, Microsoft has provided an interesting additional download [...]]]></description>
			<content:encoded><![CDATA[<p>Since SP2 for SQL Server 2005 we have some Standard Reports available when right-clicking either server or database in the Object Explorer in Management Studio.&#160; One of my favorites is the Index Usage Statistics report.</p>
<p>If you have the task to optimize performance of your server or database, Microsoft has provided an interesting additional download called the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=1d3a4a0d-7e0c-4730-8204-e419218c1efc&amp;displaylang=en" target="_blank">Performance Dashboard</a>.&#160; When you&#8217;ve installed the package, there will be some .RDL files and an interesting .CHM file in our SQL Server folder, for instance C:\Program Files\Microsoft SQL Server\90\Tools\PerformanceDashboard\.</p>
<p>Among this bunch of .RDLs there is one main report called performance_dashboard_main.rdl.&#160; All other reports are used in drillthrough scenarios from the main Performance Dashboard report.&#160; The main report can be opened by right-clicking your server in SSMS, then choose Reports &gt; Custom Reports&#8230; and browse to the RDL.</p>
<p>For a more detailed explanation on the installation procedure, have a look at <a title="Black Belt Administration: Performance Dashboard for Microsoft SQL Server, Part I" href="http://www.databasejournal.com/features/mssql/article.php/3665281/Black-Belt-Administration-Performance-Dashboard-for-Microsoft-SQL-Server-Part-I.htm" target="_blank">this Database Journal article</a>.&#160; And for an explanation of each report plus some screenshots, <a title="Black Belt Administration: Performance Dashboard for Microsoft SQL Server, Part II" href="http://www.databasejournal.com/features/mssql/article.php/3671736/Black-Belt-Administration--Performance-Dashboard-for-Microsoft-SQL-Server-Part-II.htm" target="_blank">part two of that article</a> is certainly useful as well.</p>
<p>Additional info is also available in the PerfDash.chm file located in the same folder as the RDLs.</p>
<h2>A bug</h2>
<p>Earlier this week I came across a bug in one of the stored procedures that the main Performance Dashboard report is using.&#160; When I tried executing the report I got the following error:</p>
<p><span style="font-family: courier new; color: #ff0000">Msg 535, Level 16, State 0, Line 1      <br />Difference of two datetime columns caused overflow at runtime.</span></p>
<p>This issue manifests itself when there are open connections which have been open for a period longer than approx. 24.85 days.</p>
<p>You can simulate the same error by executing the following select:</p>
<pre class="code"><span style="color: blue">select </span><span style="color: magenta">datediff</span><span style="color: gray">(</span>ms<span style="color: gray">, </span><span style="color: red">'2007-12-27 08:49:50.853'</span><span style="color: gray">, </span><span style="color: magenta">GetDate</span><span style="color: gray">())</span></pre>
<p>The bug is known by Microsoft, see this <a title="Performance Dashboard errors if you have logins longer then approx 25 days" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=324906&amp;wa=wsignin1.0" target="_blank">Microsoft Connect page</a>, but will not be fixed as these reports are not supported.&#160; In the feedback you can get enough info on how to fix the issue.&#160; I also got the above query from there although I added an m to select milliseconds instead of seconds (which would not generate the error). <img src='http://blog.hoegaerden.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;ve solved it by modifying the usp_Main_GetSessionInfo stored procedure like this:</p>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<div class="code">
<pre class="code"><span style="color: blue">CREATE PROCEDURE </span>MS_PerfDashboard<span style="color: gray">.</span>usp_Main_GetSessionInfoas
<span style="color: blue">BEGIN
select </span><span style="color: magenta">count</span><span style="color: gray">(*) </span><span style="color: blue">as </span>num_sessions<span style="color: gray">,
</span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span>s<span style="color: gray">.</span>total_elapsed_time<span style="color: gray">)) </span><span style="color: blue">as </span>total_elapsed_time<span style="color: gray">,
</span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span>s<span style="color: gray">.</span>cpu_time<span style="color: gray">)) </span><span style="color: blue">as </span>cpu_time<span style="color: gray">,
</span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span>s<span style="color: gray">.</span>total_elapsed_time<span style="color: gray">))
    - </span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span>s<span style="color: gray">.</span>cpu_time<span style="color: gray">)) </span><span style="color: blue">as </span>wait_time<span style="color: gray">,
</span><span style="color: green">/*
 following line gives an error when login_time &gt; 24 days
 see http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=324906
 the line: sum(convert(bigint, datediff(ms, login_time, getdate())))
    - sum(convert(bigint, s.total_elapsed_time)) as idle_connection_time,
*/
</span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span><span style="color: magenta">datediff</span><span style="color: gray">(</span>s<span style="color: gray">, </span>login_time<span style="color: gray">, </span><span style="color: magenta">getdate</span><span style="color: gray">()))) * </span>1000
    <span style="color: gray">- </span><span style="color: magenta">sum</span><span style="color: gray">(</span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">bigint</span><span style="color: gray">, </span>s<span style="color: gray">.</span>total_elapsed_time<span style="color: gray">)) </span><span style="color: blue">as </span>idle_connection_time<span style="color: gray">,
</span><span style="color: blue">case when </span><span style="color: magenta">sum</span><span style="color: gray">(</span>s<span style="color: gray">.</span>logical_reads<span style="color: gray">) &gt; </span>0 <span style="color: blue">then </span><span style="color: gray">(</span><span style="color: magenta">sum</span><span style="color: gray">(</span>s<span style="color: gray">.</span>logical_reads<span style="color: gray">)
    - </span><span style="color: magenta">isnull</span><span style="color: gray">(</span><span style="color: magenta">sum</span><span style="color: gray">(</span>s<span style="color: gray">.</span>reads<span style="color: gray">), </span>0<span style="color: gray">)) / </span><span style="color: magenta">convert</span><span style="color: gray">(</span><span style="color: blue">float</span><span style="color: gray">, </span><span style="color: magenta">sum</span><span style="color: gray">(</span>s<span style="color: gray">.</span>logical_reads<span style="color: gray">))
</span><span style="color: blue">else </span><span style="color: gray">NULL
</span><span style="color: blue">end as </span>cache_hit_ratio
<span style="color: blue">from </span><span style="color: green">sys</span><span style="color: gray">.</span><span style="color: green">dm_exec_sessions </span>s
<span style="color: blue">where </span>s<span style="color: gray">.</span>is_user_process <span style="color: gray">= </span>0x1
<span style="color: blue">END</span></pre>
<p>  <a href="http://11011.net/software/vspaste"></a></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2008%2F12%2F21%2Fa-performance-dashboard-issue%2F&amp;title=A%20Performance%20Dashboard%20Issue" id="wpa2a_14"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2008/12/21/a-performance-dashboard-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 Reporting Services: the black background issue</title>
		<link>http://blog.hoegaerden.be/2008/07/27/sql-server-2005-reporting-services-the-black-background-issue/</link>
		<comments>http://blog.hoegaerden.be/2008/07/27/sql-server-2005-reporting-services-the-black-background-issue/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 10:12:16 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2008/07/27/sql-server-2005-reporting-services-the-black-background-issue/</guid>
		<description><![CDATA[Recently I came across a bug that was introduced in the Reporting Services part of SQL Server 2005 SP2. When previewing the &#8220;Print Layout&#8221; of the report it would show like this: The by default Transparent background would show as black instead of white. Obviously this is not very convenient, especially when the text is [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I came across a bug that was introduced in the Reporting Services part of SQL Server 2005 SP2.  When previewing the &#8220;Print Layout&#8221; of the report it would show like this:</p>
<p><a href="http://blog.hoegaerden.be/wp-content/uploads/ssrs-preview-printlayout-bug.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.hoegaerden.be/wp-content/uploads/ssrs-preview-printlayout-bug-thumb.png" border="0" alt="SSRS_preview_printlayout_bug" width="244" height="114" /></a></p>
<p>The by default Transparent background would show as black instead of white.  Obviously this is not very convenient, especially when the text is also black.</p>
<p>Luckily Microsoft was already aware of this issue, its KB is located <a title="http://support.microsoft.com/kb/935436" href="http://support.microsoft.com/kb/935436">here</a>.</p>
<p>I managed to solve the problem by installing Cumulative Update 1 (build 3161), which can be requested for download through the following Microsoft page: <a title="http://support.microsoft.com/kb/935356/en-us" href="http://support.microsoft.com/kb/935356/en-us">http://support.microsoft.com/kb/935356/en-us</a>.</p>
<p>If you don&#8217;t like installing CUs, you could wait until SP3 ships in Q3 this year (this info comes from several sources, just do a search on &#8220;sql server 2005 SP3&#8243;).</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2008%2F07%2F27%2Fsql-server-2005-reporting-services-the-black-background-issue%2F&amp;title=SQL%20Server%202005%20Reporting%20Services%3A%20the%20black%20background%20issue" id="wpa2a_16"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2008/07/27/sql-server-2005-reporting-services-the-black-background-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

