<?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>Luke Hayler - SQL Server developer &#187; SSRS</title>
	<atom:link href="http://www.lukehayler.com/tag/ssrs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukehayler.com</link>
	<description>A blog about Integration services, Reporting services, and the things that interest me</description>
	<lastBuildDate>Tue, 08 Jun 2010 20:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reporting Services (2005) &#8220;http://localhost/reports&#8221; authentication error</title>
		<link>http://www.lukehayler.com/2010/06/reporting-services-2005-httplocalhostreports-authentication-error/</link>
		<comments>http://www.lukehayler.com/2010/06/reporting-services-2005-httplocalhostreports-authentication-error/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 11:00:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[authenticationerrors]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2010/06/reporting-services-2005-httplocalhostreports-authentication-error/</guid>
		<description><![CDATA[I have encountered this issue on two separate occasions now. The first was during a report deployment to a new Report Server Virtual Directory and the second was trying to access the report manager via the URL: http://localhost/Reports. Each time I was presented with the same &#34;Authentication Required&#34; &#34;Enter username and password for &#34;&#34; at [...]]]></description>
			<content:encoded><![CDATA[<p>I have encountered this issue on two separate occasions now. The first was during a report deployment to a new Report Server Virtual Directory and the second was trying to access the report manager via the URL: http://localhost/Reports. Each time I was presented with the same &quot;Authentication Required&quot; &quot;Enter username and password for &quot;&quot; at http://localhost&quot; screen:</p>
<p>On both occasions I searched high and low for a solution to the problem using a few trusty searches , but could not come up with an answer that worked for me. To cut a long story short the simple solution was to ensure that the URL was a) correct and b) fully qualified.</p>
<p>In the first instance (report deployment) the name of the Report Server Virtual Directory was a Named instance and so trying to deploy to http://localhost/reports was never going to work. Ensuring the right virtual directory was in the URL made all the difference. Go figure.</p>
<p>In the second instance (accessing the Report Manager) I had installed a default configuration of Reporting Services and therefore the setup had created the Virtual Directories required (Reports &amp; ReportServer). However, having typed in the URL http://localhost/Reports I got the Authentication Required screen (as above). I found numerous solutions (supposedly) to this problem, all of which are listed at the end of the post, but I eventually just tried the full path of the home page: http://localhost/Reports/Pages/Folder.aspx and it worked like a dream. Again. Go figure.</p>
<p>Why the full path had to provided I don&#8217;t know. On previous occasions I have not have to do so and have been able to connect to the Report Manager using the abbreviated URL (http://localhost/Reports). If anyone does have a clue as to why this is I would gladly welcome the comments.</p>
<p>Things to note:</p>
<p>I am running Windows XP Pro SP2 with SQL Server 2005 Developer Edition.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Other possible solutions, or at least other areas to check when experiencing this issue:</p>
<p>1. If you are using Firefox and still have problems with Authentication (whilst there are no issues with IE) try <a href="http://blog.satyr.nl/post/fixing_the_localhost_authentication_problem_in_firefox">this</a><a href="http://blog.satyr.nl/post/fixing_the_localhost_authentication_problem_in_firefox"> very quick and easy fix</a>.</p>
<p>2. Checking the security settings in Control Panel&gt;Administrator Tools&gt; IIS&gt; Default website and right clicking Reports, choose Properties&gt;Directory Security&gt;Anonymous Access &amp; Authentication control. A number of people suggest using the Anonymous setting only, although I have found that although you can then navigate to http://localhost/reports, no folder structure is available to you. It is therefore suggested that you use the Integrated Windows Authentication only.</p>
<p>3. Ensure that all the settings in Reporting Services Configuration are green. If not, attend to each of the areas in red.</p>
<p>4. Any other ideas? Post a comment that I can include here.</p>
<p>Hopefully, you haven&#8217;t had as painful a journey as I have in getting this exceedingly annoying issue (but scarily easy fix) sorted out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2010/06/reporting-services-2005-httplocalhostreports-authentication-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQLBits VI &#8211; The 6 Sets.</title>
		<link>http://www.lukehayler.com/2010/03/sqlbits-vi-the-6-sets/</link>
		<comments>http://www.lukehayler.com/2010/03/sqlbits-vi-the-6-sets/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 23:15:28 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[conferences]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[sqlbits]]></category>
		<category><![CDATA[ssas]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2010/03/sqlbits-vi-the-6-sets/</guid>
		<description><![CDATA[It’s almost time for another SQLBits, and in my [humble] opinion, it’s not soon enough. These free conferences are fantastic and if you do have the opportunity to attend I suggest you do so. Whilst I have only a small idea as to what goes into organising a conference, I am pretty sure that it [...]]]></description>
			<content:encoded><![CDATA[<p>It’s almost time for another SQLBits, and in my [humble] opinion, it’s not soon enough. These free conferences are fantastic and if you do have the opportunity to attend I suggest you do so. Whilst I have only a small idea as to what goes into organising a conference, I am pretty sure that it is a major undertaking. One that I am glad Simon Sabin (<a href="http://sqlblogcasts.com/blogs/simons/" target="_blank">Blog</a>|<a href="http://twitter.com/simon_sabin" target="_blank">Twitter</a>) and the rest of the SQLBits team (and let’s not forget volunteers here) are handling, and handling rather well. If you are keen to help out, in any way, contact Simon and offer your services.</p>
<p>I have only been to one SQLBits Conference (SQLBits V, Newport, Wales) and have talked about it <a href="http://www.lukehayler.com/2009/09/sqlbits-here-i-come/" target="_blank">here</a>, <a href="http://www.lukehayler.com/2009/11/sqlbits-v-conference-session-recap-part-1/" target="_blank">here</a> and <a href="http://www.lukehayler.com/2009/12/sqlbits-v-conference-session-recap-part-ii/" target="_blank">here</a>. I liked it. I liked it a lot (as if you couldn’t tell, right?). I got to meet loads of sqlservery people and had a number of good conversations, attend several brilliant presentations and a number of good ones (most of which I learned a bunch of new things), won a Redgate SQL Compare license (which I am still waiting for btw, Redgate, nudge nudge) and generally had a great time. While SQLBits V was a 3 day affair, SQLBits VI will be 1 day only and the theme is Performance Tuning and Scalability. Oh, and it’s free.</p>
<h3>Conference Details</h3>
<p><a href="http://www.sqlbits.com" target="_blank">SQLBits VI</a> will be held in London, and more specifically, at the Church House Conference Center, Westminster, London, UK on 16th April 2010. Starting at around 8am (for registration, swag-bag pick up and of course a few obligatory bacon baps) the conference kicks off with <a href="http://www.sqlbits.com/information/PublicSessions.aspx" target="_blank">sessions across several tracks</a>:</p>
<ul>
<li>Database Administration </li>
<li>Development </li>
<li>Business Intelligence </li>
</ul>
<p>With the focus being on performance tuning and scalability for all tracks, this promises to be a great conference for learning some interesting things. </p>
<p><a href="http://www.sqlbits.com/information/Registration.aspx" target="_blank">Registration</a> is open (and has been for a little while, if I’m being honest), but you will have to be quick. Becuase it’s only a 1 day conference, but mostly because it’s such a great conference and it’s FREE, places tend to be snapped up pretty darn quick. Also, if you register for SQLBits VI before 30th March 2010 you stand a chance of winning registration to the European PASS Summit (Germany), if you attend SQLBits VI then you stand a chance to win a registration to the PASS Summit (Seattle, USA). </p>
<p>One point on registration. As it is free, people tend to register even if they are not sure if they will actually attend. While this is not a bad thing in itself, if you are one of those people AND it turns out that you cannot attend <strong><em>then please cancel your registration</em></strong>. This frees up a place for someone else that <u>can</u> make it (but was too late [initially] for registration). There’s a lot that goes into planning a conference and most of this is done around the number of attendees. If a number of those registrants don’t pitch up, then there is a not only a whole lot of wasted money but a whole lot of wasted opportunity. Don’t be selfish, think of the community and act accordingly. Remember, it’s free!</p>
<h5>Remember the after party</h5>
<p>The sessions are bound to be fantastic, and you are likely to learn a great deal. But go home early at your peril. The prize giving, party and social after all the day’s events is not something you will want to miss. Why? Well, this is a prime opportunity to really get to know more SQL Server people. People that may well become your friends down the line, or at the very least be a contact point should you need assistance on a specific topic (the SQL Server Community is pretty awesome that way). It is also the best time to find those elusive speakers and ask them the questions that you have prepared. It’s a prime time to do this as the speakers are not stressed out about their presentations and are in a more relaxed and approachable state. They are much more likely to entertain your &lt;ahem&gt;query &lt;/ahem&gt;, especially if you hand them a beer before you do so. </p>
<p>So, stay out a little longer than 6pm and make the most of a wonderful opportunity. </p>
<h3>And finally…</h3>
<p>I’m looking forward to catching up with some old acquaintances and learning a lot of new tricks on how to tune SSIS Packages and Scale Reporting Services Solutions. I’ll also be taking some notes on presentation styles and on what makes a speaker/session a great speaker/session, as I’m thinking getting on to the presentation bandwagon….in the hopefully not-too-distant future.</p>
<p>&#160;</p>
<p>See you at SQLBits VI!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2010/03/sqlbits-vi-the-6-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Subtotals in a Matrix in SSRS (2005/2008)</title>
		<link>http://www.lukehayler.com/2010/03/creating-subtotals-in-a-matrix-in-ssrs-20052008/</link>
		<comments>http://www.lukehayler.com/2010/03/creating-subtotals-in-a-matrix-in-ssrs-20052008/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:15:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Matrix]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[subtotals]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2010/03/creating-subtotals-in-a-matrix-in-ssrs-20052008/</guid>
		<description><![CDATA[This is a quick look at how to create and use subtotals in your Matrix objects.
Subtotals 101
SQL Server Reporting Services makes it relatively easy to add totals to your columns and rows in a matrix object. In short, it’s as easy as right-click&#62;Subtotal. Seriously, that’s it. Well, unless you want to format them, but that’s [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick look at how to create and use subtotals in your Matrix objects.</p>
<h4>Subtotals 101</h4>
<p>SQL Server Reporting Services makes it relatively easy to add totals to your columns and rows in a matrix object. In short, it’s as easy as <em><strong>right-click&gt;Subtotal</strong>. </em>Seriously, that’s it. Well, unless you want to format them, but that’s another issue entirely (an not quite as straight forward).</p>
<p>Let’s do this step-by-step :</p>
<ol>
<li>Open or create a new SSRS project</li>
<li>Add a report item to your project.</li>
<li>Add a dataset</li>
<li>Add a matrix object</li>
<li>Configure matrix to desired specification</li>
<li>Add totals to outer groups by right-clicking the outer column/row group for which you require the subtotals and select <strong>subtotal</strong>.</li>
<li>Add subtotals for inner groups by right-clicking the inner column/row group for which you require the subtotals and select <strong>subtotal</strong>.</li>
<li>Tidy up by hiding the inner group line items initially &#8211; by right-clicking the inner group and selecting <strong>Properties&gt;Visibility</strong> and then setting the properties accordingly.</li>
</ol>
<p>Here’s a quick 2 minute screen cast of how to create subtotals in a Matrix object in SSRS 2005. It illustrates creating row group Totals &amp; subtotals, but applies to column groups as well:</p>
<div id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:fbb8fe51-17e2-4ad7-901f-123d691c3bc1" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">
<div><object id="scPlayer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="437" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=437&amp;content=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/SSRS_2005_MatrixSubtotals.swf" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/" /><param name="src" value="http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/bootstrap.swf" /><param name="flashvars" value="thumb=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=437&amp;content=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/SSRS_2005_MatrixSubtotals.swf" /><param name="allowfullscreen" value="true" /><embed id="scPlayer" type="application/x-shockwave-flash" width="640" height="437" src="http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/bootstrap.swf" base="http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/" allowscriptaccess="always" scale="showall" allowfullscreen="true" flashvars="thumb=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/FirstFrame.jpg&amp;containerwidth=640&amp;containerheight=437&amp;content=http://content.screencast.com/users/lukehayler/folders/Default/media/f2ba6211-69ab-4dc9-b41c-af6dcf3d8d50/SSRS_2005_MatrixSubtotals.swf" bgcolor="#FFFFFF" quality="high"></embed></object></div>
</div>
<p>Here’s a link to another version if you are having any trouble: <a href="http://www.screencast.com/t/OGE1MmI4">http://www.screencast.com/t/OGE1MmI4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2010/03/creating-subtotals-in-a-matrix-in-ssrs-20052008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Visibility Toggling SSRS 2008</title>
		<link>http://www.lukehayler.com/2010/02/custom-visibility-toggling-ssrs-2008/</link>
		<comments>http://www.lukehayler.com/2010/02/custom-visibility-toggling-ssrs-2008/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:00:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[report design]]></category>
		<category><![CDATA[report formatting]]></category>
		<category><![CDATA[report layout]]></category>
		<category><![CDATA[sql server 2008]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[SSRS 2008]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2010/02/custom-visibility-toggling-ssrs-2008/</guid>
		<description><![CDATA[A while back I wrote a post about how to toggle the visibility of rows/columns in tables/matrices for SSRS 2005. In the comments of that article someone asked how this was done in SSRS 2008. The short answer was that the method is the same. However, setting all the properties can be confusing as their [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote <a href="http://www.lukehayler.com/2009/07/custom-visibility-toggling-in-ssrs/" target="_blank">a post about how to toggle the visibility of rows/columns in tables/matrices for SSRS 2005</a>. In the comments of that article someone asked how this was done in SSRS 2008. The short answer was that the method is the same. However, setting all the properties can be confusing as their whereabouts is a little different. Hopefully this post will clear things up.</p>
<p>Let’s do this by way of example:</p>
<p>I created a project with a single report. The Data source is AdventureWorks2008 and we are looking at Total Sales figures by Year &amp; Month (keep it simple right?). I have set up a matrix object and added the required fields and set subtotals for Month &amp; Year. See Fig 1. below:</p>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:a1c7e7a5-d745-4bd8-aaec-d4842b51d68e" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;"><a title="Fig 1. The design surface with a Matrix Object" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_DesignSurface8x6.png"><img src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_DesignSurface.png" border="0" alt="" width="600" height="392" /></a></div>
<h6>Objective: Enable Toggling of the Month group, using the Year Group as the Toggle Item</h6>
<p>At this point I want to point out two key areas, as this is where we will be concentrating our efforts:</p>
<ol>
<li>The Row/Column Groups section at the bottom of the designer</li>
<li>The Visibility Properties at the bottom right corner (Last item in the Properties list &#8211; <em>but only when an object is selected</em>)</li>
</ol>
<p>Now, select the drop-down arrow for the <strong>Month</strong> Row group (See Fig 2.), choose <strong>Properties</strong> and then select the <strong>Visibility</strong> tab.</p>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:35a4a701-2301-498f-a113-dd12cc705a53" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;"><a title="Fig 2. Accessing the Row Group Properties" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_RowGroupProperties8x6.png"><img src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_RowGroupProperties.png" border="0" alt="" width="425" height="413" /></a></div>
<p>The objective is to enable toggling of the <strong>Month</strong> rows in the Matrix. We could choose to Show or Hide the <strong>Month</strong> rows when the report is initially run, or to make this decision based on an expression. Using an expression will determine which rows are expanded and which are collapsed when the report is run initially. I have chosen to use an expression:</p>
<blockquote><p>=IIF(Fields!YEAR.value=2001, False, True)</p></blockquote>
<p>This says that if the Year group value is ‘2001’ then show the Month Sales Total values (‘Expanded’), else Hide the Month Sales Total values (‘Collapsed’). See Fig 3. below:</p>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:15396b28-610f-4a51-a7d1-b7a0a1e9e5bc" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;"><a title="Fig. 3 The Month Group Visibility Properties" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_RowGroupProperties_VisibilityExpression8x6.png"><img src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_RowGroupProperties_VisibilityExpression.png" border="0" alt="" width="600" height="318" /></a></div>
<p>Also note (in Fig 3. above) that I have set the <strong>YEAR</strong> cell as the Toggle Item. We’ll configure this next.</p>
<p>Once you have set the above properties go back to the designer and highlight the <strong>YEAR</strong> cell in order to view its properties. These should be on the bottom right, otherwise right-click the cell to bring up the properties window. Find the <strong>Visibility</strong> &gt; <strong>InitialToggleState</strong> property and set it using the following Expression:</p>
<blockquote><p>=IIF(Fields!YEAR.Value = 2001, True, False)</p></blockquote>
<p>This says that if the Year group value is ‘2001’ then show the toggle icon as ‘Expanded’ (True), else show it as ‘Collapsed’ (False). This allows us to ensure that we are in sync with the expression we used to set the initial visibility of the Month rows. Fig 4. shows the end result of all this hard work:</p>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:755fb2c3-916d-4a9b-875a-5e2b327ddc2e" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;"><a title="Fig 4. Result!" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_result8x6.png"><img src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_result.png" border="0" alt="" width="381" height="424" /></a></div>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:ce9f2350-42e3-446e-a2b8-56356e803cb0" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: right; padding: 0px;">
</div>
<h4></h4>
<h4>The Visibility Properties</h4>
<p><a title="TextBox Visibility Properties" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_VisibilityProperties8x6.png"><img class="alignright" style="border: 0px initial initial;" src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_VisibilityProperties.png" border="0" alt="" width="300" height="311" /></a></p>
<p>Understanding what each of the three visibility properties does will help to use them effectively.</p>
<p><strong>Hidden &#8211; </strong>Can be set to either ‘True’ or ‘False’. This can be done by selecting True or False from the drop down, or by using an expression to set either of those values after evaluating a condition. True equates to the object being hidden and False to the object being shown (tricky eh?).</p>
<p><strong>InitialToggleState</strong> &#8211; This is only applicable if the object that you have selected can toggle the visibility of other objects. It refers to the state of the toggle icon and can either be ‘Collapsed’ (‘+’) or ‘Expanded’ (‘-‘). As explained by way of example above, setting this to &#8216;’True’ sets the icon to the ‘Expanded’ state, and False to the ‘Collapsed’ state.</p>
<p><strong>ToggleItem</strong> &#8211; Use this property to set the object that will enable the user to toggle the visibility of another item. In the example above, I have chosen <strong>YEAR</strong> as my toggle item for the <strong>Month Group</strong>.</p>
<div id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:4d34549f-83cb-4e47-af5f-7f400f868789" class="wlWriterEditableSmartContent" style="margin: 0px; display: inline; float: right; padding: 0px;"><a title="Fig 4. Oops" rel="thumbnail" href="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_Oops8x6.png"><img src="http://www.lukehayler.com/wp-content/uploads/2010/02/InitialToggleState_SSRS2008_Oops.png" border="0" alt="" width="342" height="524" /></a></div>
<h4>Beware the Gremlins</h4>
<p>You need to be aware of setting properties for the right objects or groups, or you may find that your report does not display correctly:</p>
<p>Fig 4. shows what happens when you set the Visibility properties for the <strong>Month &amp; Data CELLS</strong> in the report instead of the <strong>Month Group</strong> properties. Setting the Month Group visibility properties means that you won’t get that nasty white space, and there’s no need to set the visibility of the cells (in this instance).</p>
<p>I have placed the example project in <a href="http://www.lukehayler.com/wp-content/uploads/2010/02/VisibilityTogglingSSRS2008.zip" target="_blank">a nice little zip file</a> for all you folks that might want such a thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2010/02/custom-visibility-toggling-ssrs-2008/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Download Reports (.RDL) files for editing (SSRS 2005)</title>
		<link>http://www.lukehayler.com/2010/02/download-reports-rdl-files-for-editing-4/</link>
		<comments>http://www.lukehayler.com/2010/02/download-reports-rdl-files-for-editing-4/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:50:23 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[sql server 2005]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2010/02/download-reports-rdl-files-for-editing-4/</guid>
		<description><![CDATA[If you ever happen to be in a situation were you do not have access to or have ‘misplaced’ the SSRS report files (.rdl) and you need to edit one (or more) of the reports on your server, there is an easy way to download the .rdl files. 
Follow these easy steps:

Open SQL Server Management [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever happen to be in a situation were you do not have access to or have ‘misplaced’ the SSRS report files (.rdl) and you need to edit one (or more) of the reports on your server, there is an easy way to download the <strong>.rdl</strong> files. </p>
<p>Follow these easy steps:</p>
<ol>
<li>Open SQL Server Management Studio, </li>
<li>Log on to the Reporting Services Instance that contains the reports you are looking for </li>
<li>Browser through the directory structure to the report that needs to be updated </li>
<li>Right-click the report and choose <strong>Edit…</strong> </li>
<li>Now follow the prompts to save the file to a destination of your choice </li>
<li>Open BIDS &amp; create a new project/solution </li>
<li>Import the (previously) saved .rdl file into your SSRS project. </li>
<li>Edit away to your hearts content…. </li>
</ol>
<p>&#160;</p>
<p>I’m not going to ask why you don’t have access to or have misplaced the files in the first place (No source code management? Seriously?). I am sure there are a myriad of reasons that you can come up with. This post merely provides a quick way to recover your files and continue edits/updates that may be required.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2010/02/download-reports-rdl-files-for-editing-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQLBits V &#8211; Conference &amp; Session Recap (Part II)</title>
		<link>http://www.lukehayler.com/2009/12/sqlbits-v-conference-session-recap-part-ii/</link>
		<comments>http://www.lukehayler.com/2009/12/sqlbits-v-conference-session-recap-part-ii/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 14:00:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sqlbits]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2009/12/sqlbits-v-conference-session-recap-part-ii/</guid>
		<description><![CDATA[This is the second part in my recap of SQLBits V. You can read Part 1 here.
Sessions
I was assigned as a room monitor on the Saturday, and as 3 of the sessions I was planning on attending were in the BI track, this is where I ended up. The day for Room 1 went as [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second part in my recap of SQLBits V. You can <a href="http://www.lukehayler.com/2009/11/sqlbits-v-conference-session-recap-part-1/">read Part 1 here</a>.</p>
<h3>Sessions</h3>
<p>I was assigned as a room monitor on the Saturday, and as 3 of the sessions I was planning on attending were in the BI track, this is where I ended up. The day for Room 1 went as follows:</p>
<h6>Getting Dimensional with Data -  Chris Testa O&#8217;Neill (<a href="http://sqlblogcasts.com/blogs/testas/">Blog</a> | <a href="http://sqlbits.com/Agenda/event5/Getting_Dimensional_with_Data/default.aspx" target="_blank">Slides</a>)</h6>
<p>Chris took us through the basics of building a cube, highlighting the use of data sources and data source views, the importance of dimensions and hierarchies, and of course the measures that will hold the business metrics. This was a good talk on getting started with building your first cubes.</p>
<h6>A Whistle Stop Tour of SSIS Add-ins &#8211; Jamie Thomson (<a href="http://sqlblog.com/blogs/jamie_thomson" target="_blank">Blog</a> | <a href="http://twitter.com/jamiet" target="_blank">Twitter</a> | <a href="http://sqlbits.com/Agenda/event5/A_whistlestop_tour_of_SSIS_add-ins/default.aspx" target="_blank">Slides</a>)</h6>
<p>Jamie introduced us to a number of free/paid for SSIS add-ins. He described each add-in, how it was configured and demoed a practical use for each. I have already written about this session in <a href="http://www.lukehayler.com/2009/11/sqlbits-v-conference-session-recap-part-1/">Part 1 of the Conference Recap</a>. Jamie put a lot of work into his demos, so a big thanks to him.</p>
<h6>Self Service Business Intelligence (Project Gemini) &#8211; Bob Duffy (<a href="http://blogs.msdn.com/boduff/default.aspx" target="_blank">Blog</a> | <a href="http://sqlbits.com/Agenda/event5/Self_Service_Business_Intelligence-_Project_Gemini/default.aspx" target="_blank">Slides</a>)</h6>
<p>Bob took us once again through building a business intelligence solution with Office 2010 and Gemini. It seems that no matter how many times I see presentations on this stuff I don’t get tired of it. Looking forward to the moment I can use these tools in a commercial setting. Whenever that might be….</p>
<h6>SSIS in SQL Server 2008 &#8211; Allan Mitchell (<a href="http://www.sqlis.com" target="_blank">SQLIS.com</a> | <a href="http://www.sqldts.com" target="_blank">SQLDTS.com</a>| <a href="http://sqlbits.com/Agenda/event5/SSIS_in_SQL_Server_2008/default.aspx" target="_blank">Slides</a>)</h6>
<p>Allan did a great job (even though he overran his session by &#8216;a few minutes’) of informing us of a couple of differences in Threading between SSIS in SQL Server 2005 &amp; 2008, why you need to be using the Cache &amp; the Lookup Transform, the Data Profiling Task and Change Data Capture. Another enjoyable and informative session.</p>
<h6>Report Builder 3 &#8211; Andrew Fryer (<a href="http://blogs.technet.com/Andrew" target="_blank">Blog</a> | <a href="http://twitter.com/deepfat" target="_blank">Twitter</a> | <a href="http://sqlbits.com/Agenda/event5/Report_Builder_3/default.aspx" target="_blank">Slides</a>)</h6>
<p>Andrew wowed us all. Again. Even with some demo trouble (he was plagued with ‘technical issues’) it was a fabulous session. He took us through all the features of Report Builder 3 as a Managed Self-Service BI tool. Items to note:</p>
<ul>
<li>The Tablix Object</li>
<li>Improved Visualizations (Better Charts &amp; Gauges, Maps, Sparklines, Data Bars, Indicators)</li>
<li>Interesting layouts (see slides)</li>
<li>Support for Spatial Data</li>
<li>Integration with Virtual Earth tiles.</li>
<li>Multiple Map Layers</li>
<li>A number of Layout enhancements (new functions, new data sources, Expression-based page breaks &amp; chart headers, Excel tab naming, Bottom-to-top text rotation)</li>
<li>Aggregating aggregates</li>
</ul>
<p>This was the last presentation of the day and of the conference and it ended on an high note.</p>
<p>Everyone then piled out into the foyer for drinks &amp; games. About an hour after the social started Simon gathered everyone for prize giving &#8211; There were several prizes and winners were chosen by selecting completed feedback forms from a box (that contained all of them). I couldn’t believe it (cue <a href="http://en.wikipedia.org/wiki/Victor_Meldrew" target="_blank">Victor Meldrew</a>). On the fourth attempt a feedback form of mine was pulled out and my name was called. Score! I still wonder at how the <a href="http://www.red-gate.com/products/SQL_Compare/index_v2.htm?utm_source=google&amp;utm_medium=cpc&amp;utm_content=brand_aware&amp;utm_campaign=sqlcompare&amp;gclid=CPio3NXu354CFUQA4wodx0iCIA" target="_blank">Redgate SQLComapre</a> license was still there for the taking. This is after 3 other winners had taken mice, &amp; webcams from the pile. I think I did pretty well. Thanks Redgate!</p>
<h3>Volunteering</h3>
<p>As I have mentioned before, SQLBits is a not commercial conference. It is organised and run by <a href="http://sqlbits.com/about/WhosWho.aspx">a handful of professionals</a> that do it in their own time. I offered to be one of the helpers at this November’s conference and was glad I did so, as I got to meet and interact with a number of great people. It can sometimes be difficult to start a conversation with someone you don’t know (<a href="http://www.lukehayler.com/2009/09/sqlbits-here-i-come/" target="_blank">as I mentioned here</a>) unless you have something in common, or an icebreaker. Volunteering can be the icebreaker. It forces you to meet a bunch of new people and gets the ball rolling.</p>
<p>So what did volunteering at SQLBits involve? About an hour of my time on the Friday evening, and playing room monitor in one of the rooms (BI Track) for the day &#8211; which meant that I couldn’t attend all of the sessions that I was aiming to, but as most of them were in the same room this wasn’t too much of an issue for me. To be honest, it was a lot less work than I had expected &#8211; <em>note to self: must get involved earlier next time</em>.</p>
<p>And what did I gain out it? A better understanding for what is involved in organising a SQLBits conference, meeting and conversing with the organisers, speakers and other volunteers, making new contacts and friends, being part of the community, a wonderful dinner late on Saturday night, and a great bonus from the organisers which was totally unexpected. So a HUGE thanks to Simon, Chris, James, Darren, Martin &amp; Allan. You have pulled off (another) great conference and I am sure that I am not alone in saying that I can’t wait for the next one.</p>
<h3>The People I met</h3>
<p>Meeting more sql folks was one of my goals for the conference and I think I did pretty well. What remains to be seen is if I managed to leave a good enough impression. Over the two days I was at SQLBits I had the privilege of meeting and chatting to a number of people, some for just a brief few minutes, others for good enough chunk of time to get to know them a little better. Here’s a few of those awesome folks:</p>
<ul>
<li>Allan Mitchell (<a href="http://www.sqlis.com" target="_blank">Site</a>)</li>
<li>Andre Kamman (<a href="http://andrekamman.com/" target="_blank">Blog</a> | <a href="http://twitter.com/AndreKamman" target="_blank">Twitter</a>)</li>
<li>Andrew Fryer (<a href="http://blogs.technet.com/Andrew" target="_blank">Blog</a> | <a href="http://twitter.com/deepfat" target="_blank">Twitter</a>)</li>
<li>Ashwani Roy(<a href="http://ashwaniroy.spaces.live.com/" target="_blank">Blog</a>)</li>
<li>Bob Duffy (<a href="http://blogs.msdn.com/boduff/default.aspx" target="_blank">Blog</a>)</li>
<li>Brent Ozar &#8211; finally! (<a href="http://www.brentozar.com" target="_blank">Blog</a> | <a href="http://twitter.com/brento" target="_blank">Twitter</a>)</li>
<li>Chris Alcock (<a href="http://blog.cwa.me.uk" target="_blank">Blog</a> | <a href="http://twitter.com/calcock" target="_blank">Twitter</a>)</li>
<li>Chris Testa-O’Neill (<a href="http://sqlblogcasts.com/blogs/testas/" target="_blank">Blog</a>)</li>
<li>Chris Webb (<a href="http://cwebbbi.spaces.live.com/" target="_blank">Blog</a>)</li>
<li>Darren Green (<a href="http://www.sqlis.com" target="_blank">Site</a>)</li>
<li>David Baker (<a href="http://www.xpert360.com" target="_blank">Site</a>)</li>
<li>Derek Neighbour</li>
<li>James Rowland Jones (<a href="http://blogs.conchango.com/jamesrowlandjones" target="_blank">Blog</a> | <a href="http://www.twitter.com/jrowlandjones" target="_blank">Twitter</a>)</li>
<li>Jamie Thomson (<a href="http://sqlblog.com/blogs/jamie_thomson" target="_blank">Blog</a> | <a href="http://twitter.com/jamiet" target="_blank">Twitter</a>)</li>
<li>Jenifer Stirrup (<a href="http://jenstirrup.blogspot.com/" target="_blank">Blog</a> | <a href="http://twitter.com/jenstirrup" target="_blank">Twitter</a>)</li>
<li>Marcus Ford (<a href="http://twitter.com/MarcusDotFord" target="_blank">Twitter</a>)</li>
<li>Martin Bell (<a href="http://sqlblogcasts.com/blogs/martinbell/" target="_blank">Blog</a>)</li>
<li>Phil Carter (<a href="http://www.xpert360.com" target="_blank">Site</a> | <a href="http://twitter.com/philcarter" target="_blank">Twitter</a>)</li>
<li>Rachel Clements (<a href="http://www.norbtechnologies.com" target="_blank">Site</a> | <a href="http://www.twitter.com/RachelClements" target="_blank">Twitter</a>)</li>
<li>Rob Farley (<a href="http://msmvps.com/blogs/robfarley" target="_blank">Blog</a> | <a href="http://twitter.com/rob_farley" target="_blank">Twitter</a>)</li>
<li>Simon Sabin (<a href="http://sqlblogcasts.com/blogs/simons" target="_blank">Blog</a> | <a href="http://twitter.com/simon_sabin" target="_blank">Twitter</a>)</li>
<li>Vivek Sekrou (<a href="http://www.sqlserver007.com" target="_blank">Blog</a> | <a href="http://twitter.com/Vivekserou" target="_blank">Twitter</a>)</li>
</ul>
<p>A fantastic group of people, all knowledgeable in their own sphere of SQL Server, and great personalities. I found I had the best conversations later in the evening once things had quietened down a bit. I think it would be great if there were more opportunities for quiet times like these, as sometimes they are of the most benefit. I believe that some others actually forego sessions when they’re having a great conversation with a new (or indeed old) acquaintance.</p>
<p>It would be nice to see a little more time (and possibly structure) attributed to mealtimes during the conference. These are times that could be used to great benefit for that all important networking. I have a few ideas that I’d like to pass around and will possibly write another post about it later. At the very least I’ll pass them along to the organisers (or possibly something that I could organise???). For those that were lucky enough to go to the PASS Summit, what opportunities did you have for catching up with old friends &amp; getting to know some new folks?</p>
<h3>So, what did I learn at SQLBits?</h3>
<p>I have mentioned previously the sessions that were my highlights and have gone into some details there. This is a list of other things</p>
<ul>
<li>Arrive early &#8211; to the conference and to each session. You’ll get the lay-of-the-land and you get to meet a few people before it begins to get crazy. At the very least, get to your sessions on time. Speakers have a set time to give their presentations and need to have some time for questions. Your questions. If they have to start late due to interruptions, there’s less or no time for questions.</li>
<li>Leave late &#8211; Stay over on the last evening. I found this to be the best time for conversations with speakers, MVPS, organisers and attendees (that also stayed over). The stress of the sessions and the conference has abated and people are much easier to talk to and get to know.</li>
<li>A book/laptop/netbook/napkin/whatever &#8211; Bring something to take notes. Anything. Just ensure that you take notes for things that spark your interest. The sessions can be fairly intense (speakers try and pack in as much as they can) and your brain will be overflowing pretty quick (well, maybe I only speak for myself here), so taking notes enables you to revisit the key points at a later date when you have the time.</li>
<li>Business/Contact cards &#8211; get some made and hand them out. I met many more people than those on my list but due to my overflowing brain, just couldn’t keep track. Go get some cards people! If you weren’t on the receiving end of one of mine (care of <a href="http://www.moo.com" target="_blank">moo.com</a>), here’s an electronic copy:</li>
<li><img style="display: inline; border-width: 0px;" title="Luke_Hayler_Contact_Cards" src="http://www.lukehayler.com/wp-content/uploads/2009/12/MiniBusinesCardPhoto_Front.jpg" border="0" alt="Luke_Hayler_Contact_Cards" width="266" height="116" /> <img style="display: inline; border-width: 0px;" title="Luke_Hayler_Contact_Cards" src="http://www.lukehayler.com/wp-content/uploads/2009/12/MiniBusinessCards_text_Back2.jpg" border="0" alt="Luke_Hayler_Contact_Cards" width="272" height="116" /></li>
<li>Ask questions &#8211; if you don’t you’re missing out on some valuable first-hand information from some of the brightest sql folks around. It also helps to prepare some ahead of time. The sessions and speakers are listed well ahead of time, so take a note of those sessions you would like to attend and write down the questions you may have.</li>
<li>Time to digest &#8211; set aside some time, even just an hour, during the day to digest what you’ve learned and who you may have met. You’ll be surprised how easily this information will escape you if you if don’t. So, got get your favourite beverage, find a quiet spot and go through your notes, you may find that you have a few questions, which you can now go pose to the speaker of the session, or indeed any others.</li>
<li>Attend a Donald Farmer presentation. ‘nuff said.</li>
<li>PowerPivot, Excel 2010, Reporting Services in 2008 R2 &#8211; are all pretty awesome. I can’t wait to get my hands on these and building some mind blowing data analysis and reporting solutions.</li>
</ul>
<h3>Some Suggestions &amp; Ideas</h3>
<ul>
<li>Better information about sessions &#8211; I found that while most of the sessions were well described (in the schedule), there were some that held little or not information about the session, and one or two that had misleading titles. This makes it pretty difficult to know what to expect when you are attending. Given that feedback is so valuable to speakers (and organisers), I would have though that if someone’s expectations were not met then the speaker might receive poor feedback. Ambiguity about the session also leads to more disruptions &#8211; people will leave during the session if they feel that it’s not quite what they expected. Personally, I would like to know exactly what the session is about before I make a decision to attend. Most of the speakers I saw had an agenda slide. This is perfect for the session description.</li>
<li>Several screens in the foyer (TVs/projectors/etc) with any important announcements (room updates, next sessions, etc)</li>
<li>Live Twitter stream in each session room &#8211; which could be managed by a room monitor perhaps.</li>
<li>More time to mingle &#8211; I know that the sessions are the core of the conference, but wouldn’t having more time to get to know people and ask the MVPs/Speakers/other attendees questions help too? There was barely enough time between the sessions to get a cup of coffee &amp; a biscuit (or cookie for our US readers) let alone meeting and having a meaningful conversation. I am not sure how much of a nightmare it would be to start sessions earlier and finish later in the day, but it might make the day easier to handle &#8211; from an attendee point of view.</li>
</ul>
<p>Did you attend SQLBits? Do you have any comments on any of the above Suggestions &amp; Ideas (or indeed anything else I’ve mentioned)? Let’s hear from you!</p>
<h3>You’re still reading this??</h3>
<p>This has been a fairly epic post, so if you have made it all the way down here I applaud you. Thanks for sticking it out!</p>
<p>This has been my experience. I hope it provides a good summary of what SQLBits is about and if you weren’t already thinking about going to the next one you should definitely make plans to do so. It’s worth it.</p>
<p>See you at SQLBits VI!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/12/sqlbits-v-conference-session-recap-part-ii/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The DatePart() Function in SSRS</title>
		<link>http://www.lukehayler.com/2009/11/the-datepart-function-in-ssrs/</link>
		<comments>http://www.lukehayler.com/2009/11/the-datepart-function-in-ssrs/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 08:00:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[collections]]></category>
		<category><![CDATA[dateinterval]]></category>
		<category><![CDATA[datepart]]></category>
		<category><![CDATA[dates]]></category>
		<category><![CDATA[expressions]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2009/11/the-datepart-function-in-ssrs/</guid>
		<description><![CDATA[Using the DatePart() Function in SSRS can be tricky, even at the best of times. I have pulled my hair out too often trying to remember what syntax should be used, so have resorted to writing down all my findings. This is so that you don’t have to go through the same agony &#38; frustration [...]]]></description>
			<content:encoded><![CDATA[<p>Using the DatePart() Function in SSRS can be tricky, even at the best of times. I have pulled my hair out too often trying to remember what syntax should be used, so have resorted to writing down all my findings. This is so that you don’t have to go through the same agony &amp; frustration as I did, as well as for my own benefit (my memory is shot…)</p>
<p>What it does: Returns an Integer containing the specified part of a given date</p>
<blockquote><p><strong>Syntax</strong>: DatePart(interval, date[,firstdayofweek[,firstweekofyear]])</p>
</blockquote>
<p>There are two ways to use this function:</p>
<ul>
<li>Using the DateInterval collection </li>
<li>Using a string expression </li>
</ul>
<h5>&#160;</h5>
<h5>Using the DateInterval Collection</h5>
<p>Let’s start with an example:</p>
<blockquote><p>To return the current month: =DatePart(DateInterval.Month, Today())</p>
</blockquote>
<p>Now, in the expression builder (in BIDS), it will look like there’s something the matter with what we have just written:</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:12d6157d-8b28-4296-909e-c5d87f979888" class="wlWriterEditableSmartContent"><a href="http://www.lukehayler.com/wp-content/uploads/2009/11/SSRS_DatePartFunction_18x6.png" title="Only 'Clippy' is missing...there is nothing wrong with this expression" rel="thumbnail"><img border="0" src="http://www.lukehayler.com/wp-content/uploads/2009/11/SSRS_DatePartFunction_1.png" width="425" height="112" /></a></div>
<p>You can ignore this, the expression <u>will</u> work. An important point to note when using the DateInterval collection, is that you <u>must</u> use a date that is of type Datetime. If you use a string representation of a date (“2009/11/13”), then you’ll need to convert this to Datetime using <em>CDate(“2009/11/13”) </em>before the expression will work. Thus: </p>
<blockquote><p>This will work:&#160; =DatePart(DateInterval.Month, CDate(“2009/11/13”))</p>
<p>This won’t:&#160; = DatePart(DateInterval.Month, “2009/11/13”)</p>
</blockquote>
</p>
<p>When you use the DatePart function to identify the day of the week you can specify what the <em>First Day Of The Week</em> is (defaults to Sunday if this is not specified). You can do this by accessing the <strong>FirstDayOfWeek</strong> collection. Example &#8211; To Return the day of the week, specifying Monday as the first day of the week:</p>
<blockquote><p>DatePart(DateInterval.Weekday, CDate(“2009/11/13”), FirstDayOfWeek.Monday) <strong>returns 5 (Friday)</strong></p>
</blockquote>
<h5>All the possibilities for using the DatePart() function with the DateInterval Collection:</h5>
<p>The following table shows all the possibilities for the DatePart Function using the DateInterval collection. All expressions use a Parameter called MyDate (type = Datetime), which has a value of “2009/11/13 12:34:23”</p>
<table border="1" cellspacing="0" cellpadding="2" width="585">
<tbody>
<tr>
<td valign="top" width="535"><strong>Expression</strong></td>
<td valign="top" width="48"><strong>Result</strong></td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Second, Parameters!MyDate.Value)</td>
<td valign="top" width="48">23</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Minute, Parameters!MyDate.Value)</td>
<td valign="top" width="48">34</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Hour, Parameters!MyDate.Value)</td>
<td valign="top" width="48">12</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Weekday, Parameters!MyDate.Value, FirstDayOfWeek.Monday)</td>
<td valign="top" width="48">5</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Day, Parameters!MyDate.Value)</td>
<td valign="top" width="48">13</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.DayOfYear, Parameters!MyDate.Value)</td>
<td valign="top" width="48">317</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.WeekOfYear, Parameters!MyDate.Value)</td>
<td valign="top" width="48">46</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Month, Parameters!MyDate.Value)</td>
<td valign="top" width="48">11</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Quarter, Parameters!MyDate.Value)</td>
<td valign="top" width="48">4</td>
</tr>
<tr>
<td valign="top" width="535">DatePart(DateInterval.Year, Parameters!MyDate.Value)</td>
<td valign="top" width="48">2009</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<h5>Using a String Expression</h5>
<p>Again, let’s start with an example:</p>
<blockquote><p>To return the current month:&#160; =DatePart(“m”, Today())</p>
</blockquote>
<p>Using a String expression for your <em>interval </em>enables you to use a date that is of datatype String:</p>
<blockquote><p>=DatePart(“m”, “2009/11/13”)</p>
</blockquote>
<h5>All the possibilities for using the DatePart() function with a String Expression:</h5>
<p>As noted previously, using a string expression for the interval allows you to use a date value that is of the String datatype. You can of course use a Datetime value if you wish to.</p>
<p>This table shows all the possibilities for the DatePart function using a String Expression for the <em>interval.</em> All expressions use a Parameter called MyDate (type = String), which has a value of “2009/11/13 12:34:23”</p>
<table border="1" cellspacing="0" cellpadding="2" width="586">
<tbody>
<tr>
<td valign="top" width="101"><strong>Date Part</strong></td>
<td valign="top" width="430"><strong>Expression</strong></td>
<td valign="top" width="53"><strong>Result</strong></td>
</tr>
<tr>
<td valign="top" width="101">Second</td>
<td valign="top" width="430">DatePart(“s”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">23</td>
</tr>
<tr>
<td valign="top" width="101">Minute</td>
<td valign="top" width="430">DatePart(“n”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">34</td>
</tr>
<tr>
<td valign="top" width="101">Hours</td>
<td valign="top" width="430">DatePart(“h”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">12</td>
</tr>
<tr>
<td valign="top" width="101">Day of Week</td>
<td valign="top" width="430">DatePart(“w”, Parameters!MyDate.Value, FirstDayOfWeek.Monday)</td>
<td valign="top" width="53">5</td>
</tr>
<tr>
<td valign="top" width="101">Day of Month</td>
<td valign="top" width="430">DatePart(“d”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">13</td>
</tr>
<tr>
<td valign="top" width="101">Day of Year</td>
<td valign="top" width="430">DatePart(“y”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">317</td>
</tr>
<tr>
<td valign="top" width="101">Week of Year</td>
<td valign="top" width="430">DatePart(“ww”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">46</td>
</tr>
<tr>
<td valign="top" width="101">Month</td>
<td valign="top" width="430">DatePart(“m”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">11</td>
</tr>
<tr>
<td valign="top" width="101">Quarter</td>
<td valign="top" width="430">DatePart(“q”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">4</td>
</tr>
<tr>
<td valign="top" width="101">Year</td>
<td valign="top" width="430">DatePart(“yyyy”, Parameters!MyDate.Value)</td>
<td valign="top" width="53">2009</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<h5>Is there a preferred method?</h5>
<p>Ultimately, no. At the end of the day, all the results are the same. What is my preference? I use the DateInterval collection, mainly becuase I like that fact that you can’t get confused about which date part you are using (w/ww, y/yyyy, n….). It’s very clear to anyone who is reading the code that (for example) DateInterval.WeekOfYear refers to the week of the year and nothing else. It also forces you to use a Datetime Value, which safeguards against invalid dates (sort of).</p>
<p>I hope this clears things up a little!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/11/the-datepart-function-in-ssrs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Gearing up for SQLBits V</title>
		<link>http://www.lukehayler.com/2009/11/gearing-up-for-sqlbits-v/</link>
		<comments>http://www.lukehayler.com/2009/11/gearing-up-for-sqlbits-v/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 08:02:04 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[conferences]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql server 2008]]></category>
		<category><![CDATA[sqlbits]]></category>
		<category><![CDATA[ssas]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2009/11/gearing-up-for-sqlbits-v-3/</guid>
		<description><![CDATA[SQLBits is almost upon us. In less than 10 days, around 400 people will be descending on the Celtic Manor in Newport, Wales for the 5th instalment of what I am led to believe is a first rate conference. Great speakers, great sessions, awesome venue, _____________ attendees. That space is intentional. I plan to fill [...]]]></description>
			<content:encoded><![CDATA[<p>SQLBits is almost upon us. In less than 10 days, around 400 people will be descending on the Celtic Manor in Newport, Wales for the 5th instalment of what I am led to believe is a first rate conference. Great speakers, great sessions, awesome venue, _____________ attendees. That space is intentional. I plan to fill it in once I’ve had the pleasure of meeting a bunch of you and making a few (hundred) new friends.</p>
<h4>Preparations</h4>
<p>So I’ve been reading a lot in the last few weeks. As the PASS Summit has just come and gone, there are a multitude of blog posts out there about <a href="http://facility9.com/2009/10/05/random-thoughts-for-enjoying-the-pass-summit">conference preparation</a>, <a href="http://www.brentozar.com/archive/2009/10/travel-tips-for-non-frequent-flyers-2/">travelling tips</a>, ways to cut costs, what type of questions you should and shouldn’t be posing to speakers/vendors/other attendees, starting conversations with others, making new acquaintances, as well as those about the actual conference.</p>
<p>My preparations have be slow and steady. Research has been the main focus, with understanding what sessions are on offer, who the speakers are and what events will be taking place ‘after hours’. The first two items here are easily accomplished by venturing over to the <a href="http://www.sqlbits.com">sqlbits</a> website where you will find a description of each of <a href="http://www.sqlbits.com/information/PublicSessions.aspx">the intended sessions</a>, <a href="http://www.sqlbits.com/information/PublicSpeakers.aspx">the speakers and their bios with links to their websites and other web presences</a> (twitter) if any exist &#8211; most do, but there are a few who seem to be ghosts on the information super-highway (ha! when was the last time that you heard that phrase…). Say what you like, but I believe that if you are a speaker then you should at least have a spot on the intertubez where people can find out more about you and download your slides.</p>
<p>I’ve ordered a bunch of business cards from <a href="http://www.moo.com">moo.com</a>. They’re of the mini variety and hold all the vital contact info as well as a mug shot of yours truly &#8211; so you can remember who to <span style="text-decoration: line-through;">avoid</span> look for at the next meet…</p>
<p>I’ve started to put together a few questions for key people that I’m aiming to <span style="text-decoration: line-through;">stalk</span> find, meet and get to know a little better. I’ll bribe them with whatever they need to persuade them to stick around long enough find out who I am and to answer my questions &#8211; I find beer works pretty well in most cases.</p>
<h4>What to do, Where to go</h4>
<p>In terms of sessions that I’m thinking of attending, it depends on the schedule. I’ve been informed however, that although the schedule for the sessions has been done, ‘technical difficulties’ have meant that they are not yet available for the rest of us. Let’s hope they fix the issue soon… wink wink nudge nudge. Once I know when the sessions are to take place I’ll post a list that I’ll be attending.</p>
<p>On to the important stuff. Social Events! I have been searching for a while now, but have still to find any reference to the ‘after hours events’ &#8211; think organised dinners and karaoke sessions at the PASS Summit. This is due to the fact that either there are no events (yet) or they haven’t been adequately advertised. So, if any of you readers do have knowledge of any planned social events, please let me know. If there aren’t any planned events, well…, we’ll have to change that. Pronto.</p>
<p>I’ll see you there. SQLbits 2009.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f6abd9ff-f4ac-42a6-a15a-9a75014e94d0" class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">del.icio.us Tags: <a rel="tag" href="http://del.icio.us/popular/sqlbits">sqlbits</a>,<a rel="tag" href="http://del.icio.us/popular/sql+server">sql server</a>,<a rel="tag" href="http://del.icio.us/popular/sql">sql</a>,<a rel="tag" href="http://del.icio.us/popular/ssrs">ssrs</a>,<a rel="tag" href="http://del.icio.us/popular/ssis">ssis</a>,<a rel="tag" href="http://del.icio.us/popular/professional+development">professional development</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/11/gearing-up-for-sqlbits-v/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting SSRS Data Driven Subscriptions (SS 2005)</title>
		<link>http://www.lukehayler.com/2009/10/troubleshooting-ssrs-data-driven-subscriptions-ss-2005/</link>
		<comments>http://www.lukehayler.com/2009/10/troubleshooting-ssrs-data-driven-subscriptions-ss-2005/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 11:00:00 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[data driven subscriptions]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/2009/10/troubleshooting-ssrs-data-driven-subscriptions-ss-2005/</guid>
		<description><![CDATA[Let’s just assume that…
You’ve created your data driven subscription (File share) for your reporting services report, and everything is as it should be. The subscribers table has been created, populated and correctly mapped to the required fields in the subscription (FileName, Path, Format, Parameters, etc), the schedule is set. And then you test your subscription.
&#160;
The [...]]]></description>
			<content:encoded><![CDATA[<h4>Let’s just assume that…</h4>
<p>You’ve <a href="http://msdn.microsoft.com/en-us/library/ms156012.aspx" target="_blank">created your data driven subscription</a> (File share) for your reporting services report, and everything is as it should be. The subscribers table has been created, populated and correctly mapped to the required fields in the subscription (FileName, Path, Format, Parameters, etc), the schedule is set. And then you test your subscription.</p>
<p>&#160;</p>
<h4>The Error <strike>Message</strike> Status</h4>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:c4bca06e-d1fb-4ced-bdb9-764f3e1cef3b" class="wlWriterEditableSmartContent"><a href="http://www.lukehayler.com/wp-content/uploads/2009/10/Troubleshooting_DD_Subs__Error_Status8x6.png" title="The 'Informative' Status Message" rel="thumbnail"><img border="0" src="http://www.lukehayler.com/wp-content/uploads/2009/10/Troubleshooting_DD_Subs__Error_Status.png" width="325" height="176" /></a></div>
<p>The schedule has run and you find this very helpful <strike>error message</strike> status beside you subscription in Report Manager. Scratching your head you dive into the Error &amp; Event logs searching (in vain) for those few lines that will shed some light on the question “Why did those 2 errors occur?” Nothing.</p>
<p>&#160;</p>
<h4>Found ‘em!</h4>
<p>Hidden away in its own folder are the Reporting Services Log Files:</p>
<p><strong>*C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles</strong></p>
<p><em>*This may be different depending on your installation</em></p>
<p>More specifically, you’ll need to look at the <strong>ReportServerService__mm_dd_yyyy_hh__mm_ss.log</strong> files. These files will list, among other things, any errors encountered in your Data Driven Subscriptions. Here’s mine:</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:6c26855d-cf14-4083-b63a-ad3e436fb7f4" class="wlWriterEditableSmartContent"><a href="http://www.lukehayler.com/wp-content/uploads/2009/10/Troubleshooting_DD_Subs__Error_Message8x6.png" title="The Actual Error Message" rel="thumbnail"><img border="0" src="http://www.lukehayler.com/wp-content/uploads/2009/10/Troubleshooting_DD_Subs__Error_Message.png" width="550" height="143" /></a></div>
<p>From this I could deduce that there was a problem with the filename that was being used for one of the reports. Once I had reviewed all the filenames being used and had updated those that contained the special characters (2 of them), the subscription ran without a hitch. Problem solved.</p>
<p>So the bottom line here is, if you have any issues with you reports look in the reporting services log file.</p>
<p>&#160;</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:19979d02-8f6a-4b9f-93ca-5278a3b070c7" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/ssrs" rel="tag">ssrs</a>,<a href="http://technorati.com/tags/reporting+services" rel="tag">reporting services</a>,<a href="http://technorati.com/tags/errors" rel="tag">errors</a>,<a href="http://technorati.com/tags/data+driven+subscriptions" rel="tag">data driven subscriptions</a>,<a href="http://technorati.com/tags/troubleshooting" rel="tag">troubleshooting</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/10/troubleshooting-ssrs-data-driven-subscriptions-ss-2005/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Field Level Formatting in SSRS</title>
		<link>http://www.lukehayler.com/2009/09/simple-field-level-formatting-in-ssrs/</link>
		<comments>http://www.lukehayler.com/2009/09/simple-field-level-formatting-in-ssrs/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 08:00:38 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[report tweaks]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/?p=161</guid>
		<description><![CDATA[Sometimes



Sometimes, just having the right information in a report doesn&#8217;t completely fill the requirement.  You can enrich the content by formatting items in your report using some simple formatting codes. Follow these steps:

- Right-click the field(s) you want to format
- Choose Properties &#38; navigate to the Format tab. **
- Click on the ellipsis (&#8230;) [...]]]></description>
			<content:encoded><![CDATA[<p style="background: white">Sometimes</p>
<p style="background: white">
<p style="background: white">
<p style="background: white">
<p style="background: white"><span style="color: #333333; font-family:Verdana; font-size:10pt">Sometimes, just having the right information in a report doesn&#8217;t completely fill the requirement.  You can enrich the content by formatting items in your report using some simple formatting codes. Follow these steps:<br />
</span></p>
<p style="background: white"><span style="color: #333333; font-family:Verdana; font-size:10pt">- Right-click the field(s) you want to format<br />
- Choose Properties &amp; navigate to the <strong>Format</strong> tab. **<br />
- Click on the ellipsis (&#8230;) on the right of the <strong>Format code</strong> text box.<br />
</span></p>
<p style="background: white"><span style="font-family:Verdana; font-size:10pt"><span style="color: #333333;"><br />
</span><span style="color:blue"> </span></span></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_162" class="wp-caption aligncenter" style="width: 338px;"><a href="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-1.jpg"><span style="color: #000000;"><span style="text-decoration: none;"><img class="size-full wp-image-162 " title="Setting Formatting properties" src="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-1.jpg" alt="Setting Formatting properties" width="328" height="294" /></span></span></a></p>
<p>Setting Formatting properties</p>
</dl>
</div>
<p><span style="color: #333333;"><br />
</span></p>
<p style="background: white"><span style="color: #333333; font-family:Verdana; font-size:10pt">- Click the <strong>Standard</strong> radio button and select a basic format from the list available &#8211; an example will be provided in the right-hand box.<br />
</span></p>
<p style="background: white"><span style="font-family:Verdana; font-size:10pt"><span style="color:blue"> </span></span></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_163" class="wp-caption aligncenter" style="width: 270px;"><a href="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-dialog-box1.jpg"><span style="color: #000000;"><span style="text-decoration: none;"><img class="size-medium wp-image-163" title="Choose the required format" src="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-dialog-box1-260x300.jpg" alt="Choose the required format" width="260" height="300" /></span></span></a></p>
<p>Choose the required format</p>
</dl>
</div>
<p><span style="color: #333333;"><br />
</span></p>
<p style="background: white"><span style="color: #333333; font-family:Verdana; font-size:10pt">If you need to further <em>tweak</em> the format, click on the <strong>Custom</strong> radio button and enter you can use the following codes to do so:<img src="http://www.lukehayler.com/wp-content/uploads/2009/09/090209_2123_SimpleField1.png" alt="" /><img src="http://www.lukehayler.com/wp-content/uploads/2009/09/090209_2123_SimpleField2.png" alt="" /><br />
</span></p>
<p><span style="border-collapse: collapse; line-height: normal; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: small;"> </span></p>
<div id="attachment_166" class="wp-caption aligncenter" style="width: 690px"><a href="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-codes-table.jpg"><img class="size-full wp-image-166" title="Formatting Codes and examples" src="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-codes-table.jpg" alt="Formatting Codes and examples" width="680" height="220" /></a><p class="wp-caption-text">Formatting Codes and examples</p></div>
<p style="background: white">
<p style="background: white">Example below:</p>
<p style="background: white"><span style="font-family:Verdana; font-size:10pt"><span style="color:blue"> </span></span></p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_164" class="wp-caption aligncenter" style="width: 243px;"><a href="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-dialog-box-with-example.jpg"><span style="color: #000000;"><span style="text-decoration: none;"><img class="size-full wp-image-164  " title="Formatting a Date &amp; time field" src="http://www.lukehayler.com/wp-content/uploads/2009/09/field-formatting-format-dialog-box-with-example.jpg" alt="Formatting a Date &amp; time field" width="233" height="269" /></span></span></a></p>
<p>Formatting a Date &amp; time field</p>
</dl>
</div>
<p><span style="color: #333333; font-family:Verdana; font-size:10pt"><br />
<em>** Or select the cell you want to format and then edit the <strong>Format</strong> property in the Property pane (usually located on the right of the design environment).</em><br />
</span></p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/09/simple-field-level-formatting-in-ssrs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
