<?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>John Sansom - SQL Server DBA in the UK &#187; Reporting Services</title>
	<atom:link href="http://www.johnsansom.com/index.php/category/reporting-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnsansom.com</link>
	<description>SQL Server DBA Blog, with straightforward advice, quality resources and musings about SQL Server</description>
	<lastBuildDate>Fri, 10 Sep 2010 12:45:37 +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>Why I beleive the Microsoft BI Stack seems unfinished</title>
		<link>http://www.johnsansom.com/index.php/2009/09/why-i-beleive-the-microsoft-bi-stack-seems-unfinished/</link>
		<comments>http://www.johnsansom.com/index.php/2009/09/why-i-beleive-the-microsoft-bi-stack-seems-unfinished/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 10:30:55 +0000</pubDate>
		<dc:creator>John Sansom</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Microsoft BI]]></category>
		<category><![CDATA[SQL Server BI]]></category>

		<guid isPermaLink="false">http://www.johnsansom.com/?p=1198</guid>
		<description><![CDATA[Simon Sabin shared a great post with the SQL Server Community recently where he asked Where is the intelligence in Business Intelligence? This really got me thinking and I wanted to share some further thoughts with you on the subject. To me it seems as if the Business Intelligence solution stack is only three quarters [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Simon Sabin" href="http://sqlblogcasts.com/blogs/simons/default.aspx">Simon Sabin</a> shared a great post with the SQL Server Community recently where he asked <a title="Where is the intelligence in Business Intelligence?" href="http://sqlblogcasts.com/blogs/simons/archive/2009/08/08/Where-is-the-intelligence-in-Business-Intelligence-.aspx">Where is the intelligence in Business Intelligence?</a> This really got me thinking and I wanted to share some further thoughts with you on the subject.</p>
<p>To me it seems as if the Business Intelligence solution stack is only three quarters finished.</p>
<p>We have all these powerful tools that allow us to extrapolate data from various systems and processes throughout the organisation (for example SSIS). We also have a means to centralise the data in a standardised and optimised structure to fuel analysis (for example Analysis Services), but we are missing the simple/easy to use interface in order to expose the data to end users that require it. Reporting Services is certainly not up to job in my opinion. It is just not flexible enough in terms of features and more importantly it is not accessible to a typical business user.</p>
<p>At present a skilled analyst is necessary in order to provide a business user with access to the specific metrics/analysis that they require.</p>
<p>If this knowledge gap can indeed be bridged in the future, then the power to extrapolate business insight will finally be placed in the hands of the users that actually need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnsansom.com/index.php/2009/09/why-i-beleive-the-microsoft-bi-stack-seems-unfinished/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Server Reporting Services Tip: email subscription tweak</title>
		<link>http://www.johnsansom.com/index.php/2009/07/permit-ssrs-subscription-email/</link>
		<comments>http://www.johnsansom.com/index.php/2009/07/permit-ssrs-subscription-email/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 12:24:00 +0000</pubDate>
		<dc:creator>John Sansom</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server Tips]]></category>
		<category><![CDATA[Reporting Services Email Delivery]]></category>
		<category><![CDATA[SQL Server Reporting Services]]></category>

		<guid isPermaLink="false">http://www.johnsansom.com/?p=760</guid>
		<description><![CDATA[What&#8217;s the problem? How to configure SQL Server Reporting Services 2005 to permit users to assign the delivery email address for their own subscriptions. Why does SQL Server work this way? When you subscribe to a report, the e-mail delivery settings you work with vary depending on whether your Role includes the &#8220;Manage individual subscriptions&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What&#8217;s the problem?</strong></p>
<p>How to configure SQL Server Reporting Services 2005 to permit users to assign the delivery email address for their own subscriptions.</p>
<p><strong>Why does SQL Server work this way?</strong></p>
<p>When you subscribe to a report, the e-mail delivery settings you work with vary depending on whether your <em>Role</em> includes the &#8220;Manage individual subscriptions&#8221; task or the &#8220;Manage all subscriptions&#8221; task. See <a title="E-Mail Delivery in Reporting Services" href="http://msdn.microsoft.com/en-us/library/ms160334.aspx">E-Mail Delivery in Reporting Services</a> for further information.</p>
<p>By default, a Reporting Services <em>user </em>cannot modify the email delivery target for their own subscriptions. Now providing a user the ability to Manage All Subscriptions on a given Report Server is not really a practical solution.</p>
<p><strong>How can I make it work my way?</strong></p>
<p>As an alternative what you can do is modify the security settings of the Report Server to allow a user to specify the delivery email address for their own subscriptions.</p>
<p>This requires a configuration change to the <a title="Report Server Configuration File" href="http://msdn.microsoft.com/en-us/library/ms157273.aspx">Report Server Configuration File</a></p>
<p>Modify the value for the &#8220;SendEmailToUserAlias&#8221; XML Attribtue to be “<strong>false</strong>” in order to permit any email address to be specified.</p>
<p>See <a title="Configuring A Report Server for Email Delivery" href="http://msdn.microsoft.com/en-us/library/ms159155.aspx">Configuring a Report Server for Email Delivery</a> for detailed instructions.</p>
<p><strong>Additional Considerations</strong></p>
<p><strong> </strong></p>
<p>If you are going to permit your Report Server users to be able to specifiy the delivery address for their subscriptions then it is wise in my opinon to also limit the Domains to which you permit delivery to, for example only trusted domains internal to the organisation. This can also be configured within the very same Report Server configuration file.</p>
<p>There you have it. Simple when you know how.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnsansom.com/index.php/2009/07/permit-ssrs-subscription-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reporting Services date control issue using Analysis Services data source</title>
		<link>http://www.johnsansom.com/index.php/2009/04/reporting-services-date-control-issue-using-analysis-services-data-source/</link>
		<comments>http://www.johnsansom.com/index.php/2009/04/reporting-services-date-control-issue-using-analysis-services-data-source/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 14:09:07 +0000</pubDate>
		<dc:creator>John Sansom</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johnsansom.com/?p=387</guid>
		<description><![CDATA[Here’s a solution to an issue that you may have come up against when designing a SQL Server Reporting Services (SSRS) report requiring Datetime parameters, that uses a SQL Server Analysis Services (SSAS) data source. What’s the problem? When you create a dataset from a SSAS data source, by default the date values returned from [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a solution to an issue that you may have come up against when designing a SQL Server Reporting Services (SSRS) report requiring Datetime parameters, that uses a SQL Server Analysis Services (SSAS) data source.</p>
<p><strong>What’s the problem?</strong></p>
<p>When you create a dataset from a SSAS data source, by default the date values returned from a given Dimension are treated as strings. Now in order to use the Calendar control that is built into SSRS, the report parameters need to be defined as Datetime data types.</p>
<p>So naturally you go ahead and change the parameter data type and execute the report however, doing so raises an error of the form below.</p>
<p style="padding-left: 30px;"><span style="color: #800000;">An error occured during local processing.<br />
An error has occured during report processing.<br />
Query execution failed for data set ‘TestCalendarDataSet’.<br />
Query(47,14) the restrictions imposed by the CONSTRAINED flag in the<br />
STRTOSET function were violated.</span></p>
<p><strong>Why does this happen?</strong></p>
<p>This occurs because the data returned by the Calendar control (a datetime value) is not appropriate, as the MDX query is expecting a Dimension Memeber value.</p>
<p>For example, the MDX code with the datetime parameter is of the form:</p>
<p style="padding-left: 30px;"><span style="color: #993300;">STRTOMEMBER(@Date, CONSTRAINED)</span></p>
<p>And substituting an actual datetime parameter results in:</p>
<p style="padding-left: 30px;"><span style="color: #993300;">STRTOMEMBER(&#8220;2009-01-01&#8243;, CONSTRAINED)</span></p>
<p>Clearly  “2009-01-01” is not a valid MDX Member Value.  A valid value needs to be of the form:</p>
<p style="padding-left: 30px;"><span style="color: #993300;">STRTOMEMBER([Date].[Date].&amp;["2009-01-01T00:00:00"], CONSTRAINED)</span></p>
<p><strong>How can I fix it?</strong></p>
<p>In order to make using a datetime parameter with a SSAS data source work, you need to manually convert the parameter value, which is a string, to an MDX Member value.</p>
<p>Here’s how:</p>
<ol>
<li>Go to “Data” tab in Report Designer.</li>
<li>Choose the dataset that populates the report, and click the “…” button beside it.</li>
<li>Now, the “Dataset” dialog window shows, and clicking the  “Parameters” tab in the dialog shows the list of parameters you may choose.</li>
<li>Assume the calendar control parameter is @Date, in the  “Parameters” tab, you will have “Date” in the “Name” column, and “=Parameters!FromDateDate.Value” in the “Value” column.</li>
<li>Now, change the value column to: <span style="color: #993300;">=”[Date].[Date].&amp;[” + Format(CDate(Parameters!Date.Value), “s”) + “]”</span></li>
<li>Click “Ok” and close all windows.</li>
<li>Click “Preview” to test the result.</li>
</ol>
<p><strong>Summary</strong></p>
<p>In order to use the Calendar control for a SSRS report that encompasses a SSAS data source, the string value of the datetime parameter must be converted to an MDX Memeber Value before being passed to the data source.</p>
<p>I hope this tip helps you with your report designing endeavours.  I really enjoy reading all your comments and hearing about your experiences with SQL Server technology,  so keep your feedback coming.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnsansom.com/index.php/2009/04/reporting-services-date-control-issue-using-analysis-services-data-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Server Stuff Discovered This Week</title>
		<link>http://www.johnsansom.com/index.php/2009/03/sql-server-stuff-i-learnt-this-week/</link>
		<comments>http://www.johnsansom.com/index.php/2009/03/sql-server-stuff-i-learnt-this-week/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 11:46:15 +0000</pubDate>
		<dc:creator>John Sansom</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://johnsansom.com/?p=311</guid>
		<description><![CDATA[Virtualisation As you may already know, I am big fan of the work of Brent Ozar, a talented SQL Server professional and online author of excellent quality SQL Server content. I particularly enjoy his podcast series and think the clear, direct style of his presentations are brilliant. You can learn a great deal in a [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><span class="mceItemObject"   classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></span><br />
<mce:style><!  st1\:*{behavior:url(#ieooui) } --></p>
<p><!--[endif]--></p>
<p class="MsoNormal"><strong><span lang="EN-GB">Virtualisation</span></strong></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">As you may already know, I am big fan of the work of <a title="Brent Ozar" href="http://www.brentozar.com/">Brent Ozar</a>, a talented SQL Server professional and online author of excellent quality SQL Server content. I particularly enjoy his podcast series and think the clear, direct style of his presentations are brilliant. You can learn a great deal in a relatively short space of time and as I commute daily into the city of London, I find Brent’s podcasts a great way to maximize this otherwise lost time. </span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">This week I watched the first in a series of podcasts about the use of Virtualisation technology and SQL Server. Virtualisation is a really hot topic right now, what with the current economic climate forcing businesses to really drive down costs and look for ways to streamline their IT platforms. If you have not worked with virtualisation technology before this podcast series provides a solid overview. </span></p>
<p class="MsoNormal"><span lang="EN-GB">You can download the first podcast in the series here: <a title="Virtualization Basics" href="http://sqlserverpedia.com/blog/sql-server-management/virtualization-basics-part-1-the-market/">Virtualization Basics</a><br />
</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><strong><span lang="EN-GB">Reporting Services Style Sheets</span></strong></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">As a Business Intelligence professional, you are responsible for a very large volume of SQL Server Reporting Services reports. You will no doubt understand that modifying the aesthetics can be a real chore and is probably not the best use of your time. If you have ever needed to update the look &amp; feel or cooperate branding for each and every one of your reports, then you will know exactly what I am talking about.</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">So if you want to save yourself a significant amount of time then I thoroughly recommend that you look into the use of Style Sheets to manage the presentation of your reports. This is a great way to centrally manage the look and feel of all of your reports and the best part is that it is easy to implement. That’s right, you can update or modify the style of all of your SQL Reporting Services Reports, by making a single code change.</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Find out how here: <a title="Centralising Reporting Services Stylesheets " href="http://www.sqlservercentral.com/articles/Reporting+Services/65811/">Centralising Reporting Services Stylesheets</a><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnsansom.com/index.php/2009/03/sql-server-stuff-i-learnt-this-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance Dashboard Report – Datatype Overflow Error</title>
		<link>http://www.johnsansom.com/index.php/2009/01/performance-dashboard-report-datatype-overflow-error/</link>
		<comments>http://www.johnsansom.com/index.php/2009/01/performance-dashboard-report-datatype-overflow-error/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 15:56:44 +0000</pubDate>
		<dc:creator>John Sansom</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server Tips]]></category>

		<guid isPermaLink="false">http://johnsansom.com/?p=33</guid>
		<description><![CDATA[When you try to execute the Performance Dashboard Reports for the first time, you may be presented with an error of the form: &#8220;the difference of two datetime columns caused overflow at runtime&#8221; This is because the DATEDIFF function returns an int value and once you have a connection that is more than 24 days [...]]]></description>
			<content:encoded><![CDATA[<p>When you try to execute the Performance Dashboard Reports for the first time, you may be presented with an error of the form:</p>
<p><em>&#8220;the difference of two datetime columns caused overflow at runtime&#8221;</em></p>
<p>This is because the DATEDIFF function returns an int value and once you have a connection that is more than 24 days or so old it will overflow the data type.</p>
<p>In order to work around this issue simply substitute the code from the stored procedure MS_PerfDashboard.usp_Main_GetSessionInfo (most likely located in the MSDB database) below:</p>
<pre name="code" class="sql">sum(
	convert(bigint,
		datediff(ms, login_time, getdate())))
		- sum(convert(bigint, s.total_elapsed_time)
	)
	as idle_connection_time,</pre>
<p>And replace it with:</p>
<pre name="code" class="sql">SUM
(
	CONVERT
	(
		bigint,
		CAST
		(
			DATEDIFF ( minute, login_time, getdate())
			AS BIGINT
		)
		* 60000
		+ DATEDIFF
		(
			millisecond,
			DATEADD
			(
				minute,
				DATEDIFF(minute,login_time,getdate()),
				login_time
			),
			getdate()
		)
	)
)
- sum(convert(bigint, s.total_elapsed_time))
as idle_connection_time,</pre>
<p><script src="js/shCore.js"></script><br />
 <script src="js/shBrushCSharp.js"></script><br />
<script src="js/shBrushXml.js"></script><br />
 <script><!--
dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
// --></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnsansom.com/index.php/2009/01/performance-dashboard-report-datatype-overflow-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
