<?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>Davy&#039;s Blog &#187; SQL Server</title>
	<atom:link href="http://blog.davyknuysen.be/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.davyknuysen.be</link>
	<description>My Blog on Microsoft BI</description>
	<lastBuildDate>Wed, 27 Jul 2011 21:30:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Next SQLUG event: SQL Server Forensic Analysis &#8211; Playing CSI with databases, February 28th</title>
		<link>http://blog.davyknuysen.be/2011/02/23/next-sqlug-event-sql-server-forensic-analysis-playing-csi-with-databases-february-28th/</link>
		<comments>http://blog.davyknuysen.be/2011/02/23/next-sqlug-event-sql-server-forensic-analysis-playing-csi-with-databases-february-28th/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 07:49:19 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLUG.BE]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/?p=257</guid>
		<description><![CDATA[Dear SQLUG member, We are happy to announce our first user group session of 2011&#8230;CSI style! Tom Van Zele will bring us SQL Server Forensic Analysis &#8211; Playing CSI with databases. You get a call from a colleague who thinks that his financial information system has been hacked. Of course this system uses a SQL Server [...]]]></description>
			<content:encoded><![CDATA[<p>Dear SQLUG member,</p>
<p>We are happy to announce our first user group session of 2011&#8230;CSI style!</p>
<p><strong>Tom Van Zele</strong> will bring us <strong>SQL Server Forensic Analysis &#8211; Playing CSI with databases</strong>.</p>
<p><em>You get a call from a colleague who thinks that his financial information system has been hacked. Of course this system uses a SQL Server Database back-end. In this session we&#8217;ll uncover the basics of digital forensics: how to find out whether the system has been accessed by the intruder? What data has been accessed? Was there anything modified? We&#8217;ll learn on how to find evidence of what happened and also on how to create a report that can be served as evidence in a court of law. </em></p>
<p><strong>About Tom Van Zele </strong></p>
<p>Tom is a seasoned IT professional with more than 10 years experience, first in large scale Active Directory implementations, later moving on to SQL Server. His focus lies on infrastructure &amp; security. You can follow Tom on his blog <a href="http://www.synsol.eu/blog" target="_blank">www.synsol.eu/blog</a> and Twitter @tvanzele</p>
<p><strong>When</strong></p>
<p>February, 28th</p>
<p><strong>Agenda</strong><strong><br />
</strong>18:00 Registration<br />
18:30 Session Start<br />
21:00 Session End<br />
<strong>Location</strong></p>
<p>Microsoft België<br />
Corporate Village<br />
Leonardo Da Vincilaan 3<br />
1935 Zaventem</p>
<p><a href="http://sqlug.be/nextevent/event/register/?id=25" target="_blank">Click here</a> to register</p>
<p>Hope to see you at the event!<br />
The SQLUG Team</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2011%2F02%2F23%2Fnext-sqlug-event-sql-server-forensic-analysis-playing-csi-with-databases-february-28th%2F&amp;title=Next%20SQLUG%20event%3A%20SQL%20Server%20Forensic%20Analysis%20%26%238211%3B%20Playing%20CSI%20with%20databases%2C%20February%2028th" id="wpa2a_2"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2011/02/23/next-sqlug-event-sql-server-forensic-analysis-playing-csi-with-databases-february-28th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot rename a report in SharePoint integrated mode.</title>
		<link>http://blog.davyknuysen.be/2010/09/22/cannot-rename-a-report-in-sharepoint-integrated-mode/</link>
		<comments>http://blog.davyknuysen.be/2010/09/22/cannot-rename-a-report-in-sharepoint-integrated-mode/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 17:38:31 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/2010/09/22/cannot-rename-a-report-in-sharepoint-integrated-mode/</guid>
		<description><![CDATA[Installing the report server in SharePoint integrated mode, really gives you the possibility to offer a great reporting frontend to your users. But a few days ago I came across a real nasty bug: I just tried to rename one of the reports, what should be an easy thing to do, but I got this [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the report server in SharePoint integrated mode, really gives you the possibility to offer a great reporting frontend to your users. But a few days ago I came across a real nasty bug:</p>
<p>I just tried to rename one of the reports, what should be an easy thing to do, but I got this really weird error message:</p>
<blockquote><p>System.Web.Services.Protocols.SoapException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. &#8212;&gt; Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException:<strong> <span style="color: #ff0000;">An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database</span>.</strong> &#8212;&gt; System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors<br />
at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.GetItemDataSources(String Item, DataSource[]&amp; DataSources)<br />
at Microsoft.ReportingServices.WebServer.ReportingService2006.GetItemDataSources(String Item, DataSource[]&amp; DataSources)</p></blockquote>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/09/clip_image001.jpg"><img style="display: inline; border-width: 0px;" title="clip_image001" src="http://blog.davyknuysen.be/wp-content/uploads/2010/09/clip_image001_thumb.jpg" border="0" alt="clip_image001" width="553" height="258" /></a></p>
<p>This error did not make any sense to me, so I looked into the Report Server Trace Log for more info and found this:</p>
<blockquote><p>library!ReportServer_0-11!6028!07/01/2010-14:15:39:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;</p>
<p>library!ReportServer_0-11!6c18!07/01/2010-14:15:39:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;</p>
<p>library!ReportServer_0-11!6028!07/01/2010-14:15:59:: Call to GetPermissionsAction(http://hictatriuap017/sites/DashboardsICTRA/ReportsLibrary/SLA PRD/Report Management Summary.rdl).</p>
<p>library!ReportServer_0-11!6c18!07/01/2010-14:15:59:: Call to GetItemDataSourcesAction(http://hictatriuap017/sites/DashboardsICTRA/ReportsLibrary/SLA PRD/Report Management Summary.rdl).</p>
<p>library!ReportServer_0-11!6c18!07/01/2010-14:15:59:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;</p>
<p>library!ReportServer_0-11!6c18!07/01/2010-14:15:59:: e ERROR: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. &#8212;&gt; <strong><span style="color: #ff0000;">System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object &#8216;dbo.Catalog&#8217; with unique index &#8216;IX_Catalog&#8217;</span>.</strong></p>
<p>The statement has been terminated.</p></blockquote>
<p><span style="color: #0000ff; font-size: xx-small;"> </span></p>
<p>For every report in the report library, reporting services creates a record in the Catalog table of the report server database. But when you delete a report, that record doesn’t seem to be deleted.</p>
<p>The catalog table has a unique index on the column &#8220;path&#8221;, that contains the full path to the report. When I tried to rename the report, it failed because a previously (deleted) report existed with that same name.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/09/clip_image002.jpg"><img style="display: inline; border-width: 0px;" title="clip_image002" src="http://blog.davyknuysen.be/wp-content/uploads/2010/09/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="397" height="356" /></a></p>
<p>You can work around this problem by changing the value of the path column of the old record.</p>
<p>If anyone has more details about this problem or maybe a solution, please leave a comment.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F09%2F22%2Fcannot-rename-a-report-in-sharepoint-integrated-mode%2F&amp;title=Cannot%20rename%20a%20report%20in%20SharePoint%20integrated%20mode." id="wpa2a_4"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/09/22/cannot-rename-a-report-in-sharepoint-integrated-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next UG event: &#8220;Ask The Experts&#8221; &#8211; 29th of September</title>
		<link>http://blog.davyknuysen.be/2010/09/13/next-ug-event-ask-the-experts-29th-of-september/</link>
		<comments>http://blog.davyknuysen.be/2010/09/13/next-ug-event-ask-the-experts-29th-of-september/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 10:11:23 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLUG.BE]]></category>
		<category><![CDATA[Event]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/?p=242</guid>
		<description><![CDATA[Mark your calendar for the 29th of September for the &#8220;Ask The Experts&#8221; event. SQLUG teams up again with Microsoft to organize this panel of hardcore SQL Server experts with Wesley Backelant(MSFT), Frederik Vandeputte(MVP), Dirk Gubbels(MSFT) and Gunther Beersaerts(MSFT). Starts: 19:00 Location: Microsoft België Send your SQL Server related questions to asktheexperts@sqlug.be. We will answer [...]]]></description>
			<content:encoded><![CDATA[<p>Mark your calendar for the 29th of September for the &#8220;<strong>Ask The Experts</strong>&#8221; event.</p>
<p>SQLUG teams up again with Microsoft to organize this panel of hardcore SQL Server experts with Wesley Backelant(MSFT), Frederik Vandeputte(MVP), Dirk Gubbels(MSFT) and Gunther Beersaerts(MSFT).</p>
<p>Starts: 19:00<br />
Location: Microsoft België</p>
<p><strong>Send your SQL Server related questions to </strong><a href="mailto:asktheexperts@sqlug.be?subject=My%20Question%20for%20the%20experts"><strong>asktheexperts@sqlug.be</strong></a><strong>.</strong></p>
<p>We will answer as many questions as possible within the available timeframe.</p>
<p><strong>About The Panel</strong><br />
<strong><br />
Wesley Backelant</strong><br />
In his role as a Technology Advisor at Microsoft, Wesley is responsible for helping customers understand the capabilities of SQL Server and the Microsoft Business Intelligence stack. Before joining Microsoft, Wesley was a Database Architect working on some of the largest implementations of SQL Server in Belgium. Wesley started his professional career in the SQL Server 6.5 timeframe and remained true to his passion ever since. Wesley is active on <a href="http://www.twitter.com/WesleyBackelant">Twitter</a> where he handles topics related to his favorite technology.</p>
<p><strong>Frederik Vandeputte</strong><br />
Frederik Vandeputte is a Senior Consultant and partner at Kohera, the Microsoft SQL Server/Business Intelligence Competence Center of the Cronos Group. Frederik has been working with SQL Server since version 6.5. In his free time Frederik collects Microsoft certifications. His collection includes MCTS, MCSA, MCSE, MCDBA, MCITP, MCT, ranging from Windows 2000 and SQL Server 2000 up to SQL Server 2008. Frederik is one of the co-founders and the President of the Belgian SQL Server User Group (SQLUG.BE). In January 2008 Frederik, became the first Belgian MVP on SQL Server. Follow Frederik on his <a href="http://www.vandeputte.org/">website</a> and <a href="http://twitter.com/frederikvdp">twitter</a>.</p>
<p><strong>Dirk Gubbels</strong><br />
Dirk Gubbels is a senior consultant at Microsoft, and has been working with SQL Server since version 4.2. As one of the few Microsoft Certified Database Architects he has been involved in the most demanding SQL server based applications in Belgium and all over the EMEA region. His main focus areas are Design, Performance and Availability for both OLTP and Business Intelligence environments</p>
<p><strong>Gunther Beersaerts</strong><br />
Gunther Beersaerts joined Microsoft in 1998 (on the launch day of SQL Server 7.0) as a Technical Marketer for MSDN/TechNet road shows and has held a number of technical roles during his career, including Systems Engineer, ATS, TSP roles covering a broad set of Microsoft Application Platform solutions. Over the past few years, Gunther has been active in technical roles for Databases and Business Intelligence platforms in EPG Belgium &amp; Luxemburg. He then became a Strategist in the CATM (Customer Advocacy and Technology Management) organization which is a key-connection between the Microsoft Development teams and Customers /Partners. In this role, Gunther focuses on the Microsoft Data Platform, including SQL Server and Business Intelligence solutions. Prior to Microsoft, he was a developer and messaging engineer at a large financial institution in Brussels.</p>
<p><strong>Agenda:</strong></p>
<table>
<tbody>
<tr>
<td align="left">19:00</td>
<td align="left">Registration</td>
</tr>
<tr>
<td align="left">19:30</td>
<td align="left">Session Start</td>
</tr>
<tr>
<td align="left">21:00</td>
<td align="left">Session End</td>
</tr>
</tbody>
</table>
<p><strong>Location:</strong><br />
Microsoft België<br />
Corporate Village<br />
Leonardo Da Vincilaan 3<br />
1935 Zaventem</p>
<p>Tel: +32.2.503.31.13<br />
Fax: +32.2.704.35.35</p>
<p>This Event is brought to you by <strong><a href="http://www.microsoft.be/" target="_blank">Microsoft</a></strong></p>
<p><a href="http://www.sqlug.be/nextevent/event/register/?id=24">Click here</a> to register</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F09%2F13%2Fnext-ug-event-ask-the-experts-29th-of-september%2F&amp;title=Next%20UG%20event%3A%20%26%238220%3BAsk%20The%20Experts%26%238221%3B%20%26%238211%3B%2029th%20of%20September" id="wpa2a_6"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/09/13/next-ug-event-ask-the-experts-29th-of-september/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLA script to deploy MDX Calculations</title>
		<link>http://blog.davyknuysen.be/2010/05/05/xmla-script-to-deploy-mdx-calculations/</link>
		<comments>http://blog.davyknuysen.be/2010/05/05/xmla-script-to-deploy-mdx-calculations/#comments</comments>
		<pubDate>Wed, 05 May 2010 16:13:21 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[MDX]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLServerPedia]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[OLAP]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/2010/05/05/xmla-script-to-deploy-mdx-calculations/</guid>
		<description><![CDATA[At a current project I needed to create a deploy script for the MDX calculations of a cube. SQL Server Management Studio makes it very easy for you to create XMLA-scripts to create or alter cubes, dimensions, etc… But it’s not possible to use Management Studio to create an alter-script that only contains the MDX [...]]]></description>
			<content:encoded><![CDATA[<p>At a current project I needed to create a deploy script for the MDX calculations of a cube.</p>
<p>SQL Server Management Studio makes it very easy for you to create XMLA-scripts to create or alter cubes, dimensions, etc… But it’s not possible to use Management Studio to create an alter-script that only contains the MDX calculations. Because I needed to resolve a bug in the calculations but the rest of the cube was not ready to be deployed to production yet, I had to create an alter script just for the MDX.</p>
<p>Of course I could have started learning the XMLA-syntax to write a script for this, but I decided to go for the easy way: the <strong>BIDSHelper</strong> has an option to deploy the MDX to a cube without having to deploy the entire cube.</p>
<p>If you don’t know <strong>BIDSHelper</strong>, or don’t already have it installed, go to <a href="http://www.codeplex.com/bidshelper">http://www.codeplex.com/bidshelper</a>. <strong>This is a must have add-in for all SSAS and SSIS developers!</strong></p>
<p>But as I was allowed to use Management Studio to makes changes to the cubes in the development environment only. So I needed to capture the XMLA script the <strong>BIDSHelper</strong> executes on the cube, to deploy the same script to the production environment.</p>
<p>That what the profiler is for, not? J</p>
<p>Open the SQL Server Profiler, create a new trace and connect to the analysis services instance. Use a blank template and switch to the tab “Events Selection”. The only event we want to capture here is “Command Begin”.</p>
<p>Click Run.</p>
<p>Now the profiler is ready to capture the XMLA-script, so switch back to Management Studio and use the BIDSHelper to deploy the MDX calculations. When the deploy is finished you can stop the trace.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image002.jpg"><img style="display: inline; border: 0px;" title="clip_image002" src="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="628" height="396" /></a></p>
<p>The profiler should have captured 2 events. The event with subclass “Alter” is the one we need.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image004.jpg"><img style="display: inline; border: 0px;" title="clip_image004" src="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image004_thumb.jpg" border="0" alt="clip_image004" width="628" height="397" /></a></p>
<p>Copy the script from the profiler to a new XMLA script in Management Studio.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image006.jpg"><img style="display: inline; border: 0px;" title="clip_image006" src="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image006_thumb.jpg" border="0" alt="clip_image006" width="441" height="412" /></a></p>
<p>The last 3 lines (PropertyList) can be deleted.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image008.jpg"><img style="display: inline; border: 0px;" title="clip_image008" src="http://blog.davyknuysen.be/wp-content/uploads/2010/05/clip_image008_thumb.jpg" border="0" alt="clip_image008" width="628" height="203" /></a></p>
<p>In the node “ObjectDefinition” you will find your script.</p>
<p>Enjoy!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F05%2F05%2Fxmla-script-to-deploy-mdx-calculations%2F&amp;title=XMLA%20script%20to%20deploy%20MDX%20Calculations" id="wpa2a_8"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/05/05/xmla-script-to-deploy-mdx-calculations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parent-Child hierarchies in Reporting Services</title>
		<link>http://blog.davyknuysen.be/2010/04/16/parent-child-hierarchies-in-reporting-services/</link>
		<comments>http://blog.davyknuysen.be/2010/04/16/parent-child-hierarchies-in-reporting-services/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 10:28:32 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[MDX]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLServerPedia]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Reporting]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/2010/04/16/parent-child-hierarchies-in-reporting-services/</guid>
		<description><![CDATA[Reporting Services 2008 is a great reporting tool, but displaying Analysis Services data with Reporting Services doesn’t always display the data as you would expect. A Parent-child hierarchy is one example of this: When you browse Parent-child hierarchy from an Analysis Services cube with Excel, Excel automatically displays it with nice drill-down functionality. But when [...]]]></description>
			<content:encoded><![CDATA[<p><em>Reporting Services 2008 is a great reporting tool, but displaying Analysis Services data with Reporting Services doesn’t always display the data as you would expect.</em></p>
<p><em> </em></p>
<p><em>A Parent-child hierarchy is one example of this: When you browse Parent-child hierarchy from an Analysis Services cube with Excel, Excel automatically displays it with nice drill-down functionality. </em></p>
<p><em>But when you add it to a Reporting Services report, you get something like this:</em></p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image002.jpg"><img style="display: inline; border: 0px;" title="clip_image002" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="357" height="241" /></a></p>
<p><em>That’s not how we like to display a Parent-Child hierarchy to our users!</em></p>
<p><em>To display it with the expected drill-down you need to do some extra configuration:</em></p>
<p><em> </em></p>
<p><em>The following example uses the AdventureWorks example cube available on <a href="http://www.codeplex.com/">CodePlex</a>:</em></p>
<p>Create a new report and add a dataset with the following MDX query:</p>
<p>SELECT NON EMPTY { [Measures].[Amount] } ON COLUMNS,</p>
<p>NON EMPTY { (DESCENDANTS([Organization].[Organizations].[Organization Level 01].ALLMEMBERS) ) }</p>
<p>DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME, PARENT_UNIQUE_NAME,</p>
<p>LEVEL_NUMBER ON ROWS</p>
<p>FROM [Adventure Works]</p>
<p>CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING,</p>
<p>FONT_NAME, FONT_SIZE, FONT_FLAGS</p>
<p>Add a Tablix<strong><em> </em></strong>to your report and drag the parent-child hierarchy “Organizations” en the fact “Amount” to the Detail Row of the Tablix.</p>
<p><strong>To enable drill-down you need to edit the Group Properties of the Row Group:</strong></p>
<p>Configure the group to iterate on the UniqueName of “Organizations”:</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image004.jpg"><img style="display: inline; border: 0px;" title="clip_image004" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image004_thumb.jpg" border="0" alt="clip_image004" width="532" height="233" /></a></p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image006.jpg"><img style="display: inline; border: 0px;" title="clip_image006" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image006_thumb.jpg" border="0" alt="clip_image006" width="581" height="482" /></a></p>
<p>Go to the Advanced options and set the property “Recursive Parent” to the ParentUniqueName of “Organizations”.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image008.jpg"><img style="display: inline; border: 0px;" title="clip_image008" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image008_thumb.jpg" border="0" alt="clip_image008" width="581" height="482" /></a></p>
<p>Change the visibility of this Group to “Hide” and check the option &#8220;Display can be toggled by this report item&#8221;. The toggle item should be the Textbox containing the Parent-Child hierarchy.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image010.jpg"><img style="display: inline; border: 0px;" title="clip_image010" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image010_thumb.jpg" border="0" alt="clip_image010" width="581" height="482" /></a></p>
<p><strong>Now optimize the layout by increasing the indent for the lower levels of the hierarchy:</strong></p>
<p>In the Textbox properties: set the following expression for &#8220;Padding &#8211; Left&#8221;:</p>
<p>=Cstr(Fields!Organizations.LevelNumber * 10) &amp; &#8220;pt&#8221;</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image012.jpg"><img style="display: inline; border: 0px;" title="clip_image012" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image012_thumb.jpg" border="0" alt="clip_image012" width="524" height="472" /></a></p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image014.jpg"><img style="display: inline; border: 0px;" title="clip_image014" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image014_thumb.jpg" border="0" alt="clip_image014" width="581" height="532" /></a></p>
<p>Click Preview to test the report.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image016.jpg"><img style="display: inline; border: 0px;" title="clip_image016" src="http://blog.davyknuysen.be/wp-content/uploads/2010/04/clip_image016_thumb.jpg" border="0" alt="clip_image016" width="359" height="240" /></a></p>
<p>Look’s way better isn’t it?</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F04%2F16%2Fparent-child-hierarchies-in-reporting-services%2F&amp;title=Parent-Child%20hierarchies%20in%20Reporting%20Services" id="wpa2a_10"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/04/16/parent-child-hierarchies-in-reporting-services/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Next SQLUG event on What is System Center Operations Manager 2007 R2 and how can it help in managing SQL Servers, May 20th</title>
		<link>http://blog.davyknuysen.be/2010/04/15/next-sqlug-event-on-what-is-system-center-operations-manager-2007-r2-and-how-can-it-help-in-managing-sql-servers-may-20th/</link>
		<comments>http://blog.davyknuysen.be/2010/04/15/next-sqlug-event-on-what-is-system-center-operations-manager-2007-r2-and-how-can-it-help-in-managing-sql-servers-may-20th/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:02:55 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLUG.BE]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/?p=190</guid>
		<description><![CDATA[Managing SQL Server requires insight in the state and performance of the underlying infrastructure, OS and individual SQL components. System Center Operations Manager 2007 R2 cannot only give you that insight, but it can be reused in a broader application/service monitoring view. This session focuses on the out-of-the-box capabilities of System Center Operations Manager 2007 [...]]]></description>
			<content:encoded><![CDATA[<p><em>Managing SQL Server requires insight in the state and performance of the underlying infrastructure, OS and individual SQL components.</p>
<p>System Center Operations Manager 2007 R2 cannot only give you that insight, but it can be reused in a broader application/service monitoring view.</p>
<p>This session focuses on the out-of-the-box capabilities of System Center Operations Manager 2007 R2 but also sh</em>ows you how a distributed application can easily reuse these capabilities to provide an extra step in monitoring.</p>
<p><strong>About Ricardo Noulez</strong><br />
Ricardo Noulez is a Senior Consultant at Microsoft Consulting Services in the Benelux. Been with Microsoft since January 2002 as a subject matter expert in Microsoft Operations Manager (now System Center Operations Manager) and Systems Management Server (System Center Configuration Manager). Ricardo has a great focus around the System Center product family and he is currently expanding his horizons towards the System Center Service Manager product. He is always interested in finding ways to improve the way that customers manage their IT environment and has certifications and great affinity with ITIL good practices and the MOF framework to help them achieve this. In the first third of his 18 year career, Ricardo was a developer but gradually converted himself to Systems Management and IT operations. This gives him a broad understanding in the different needs and view-points of all technical players that make IT ideas come true.</p>
<p><strong>Agenda:</strong></p>
<ul>
<li>18:00 &#8211; Registration</li>
<li>18:30 &#8211; Session Start</li>
<li>21:00 &#8211; Session End</li>
</ul>
<p><strong>Location:</strong><br />
Microsoft België<br />
Corporate Village<br />
Leonardo Da Vincilaan 3<br />
1935 Zaventem</p>
<p>Tel: +32.2.503.31.13<br />
Fax: +32.2.704.35.35</p>
<p>This Event is brought to you by <strong><a href="http://www.microsoft.be/" target="_blank">Microsoft</a></strong></p>
<p><strong><a href="http://sqlug.be/nextevent/event/?id=23">Click here</a> to register.</strong></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F04%2F15%2Fnext-sqlug-event-on-what-is-system-center-operations-manager-2007-r2-and-how-can-it-help-in-managing-sql-servers-may-20th%2F&amp;title=Next%20SQLUG%20event%20on%20What%20is%20System%20Center%20Operations%20Manager%202007%20R2%20and%20how%20can%20it%20help%20in%20managing%20SQL%20Servers%2C%20May%2020th" id="wpa2a_12"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/04/15/next-sqlug-event-on-what-is-system-center-operations-manager-2007-r2-and-how-can-it-help-in-managing-sql-servers-may-20th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reporting Services Timeout in Sharepoint</title>
		<link>http://blog.davyknuysen.be/2010/03/03/reporting-services-timeout-in-sharepoint/</link>
		<comments>http://blog.davyknuysen.be/2010/03/03/reporting-services-timeout-in-sharepoint/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 07:05:53 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/2010/03/03/172/</guid>
		<description><![CDATA[Recently someone asked me to check a Reporting Services report that always resulted in an Unexpected Error. The report server was configured for Sharepoint Integrated Mode. I came to the conclusion that the server always returned this error after exactly 2 minutes, so it had to be a timeout exception. The report was kind of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently someone asked me to check a Reporting Services report that always resulted in an Unexpected Error. The report server was configured for Sharepoint Integrated Mode.</p>
<div id="bjuf" style="text-align: left;"><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/03/timeout-sharepoint.jpg"><img class="size-full wp-image-175 alignnone" title="timeout sharepoint" src="http://blog.davyknuysen.be/wp-content/uploads/2010/03/timeout-sharepoint.jpg" alt="" width="614" height="151" /></a></div>
<p>I came to the conclusion that the server always returned this error after exactly 2 minutes, so it had to be a timeout exception.</p>
<p>The report was kind of big, so tuning it would not really help (enough).</p>
<p>I took me some time to find out which timeout setting to change, because there seem be a lot of them:</p>
<p>There is the Query Execution timeout of the Dataset, a Report Execution timeout, the Connection timeout of IIS, other timeouts in the Report Server Configuration file, &#8230;</p>
<p>But the real cause of this timeout is an Execution timeout of Sharepoint.</p>
<p>You can change this timeout setting in the web.config of your Sharepoint site, by default in <a title="c:\inetpub\wwwroot\wss\VirtualDirectories\80" href="http:/c:\inetpub\wwwroot\wss\VirtualDirectories\80">c\:inetpub\wwwroot\wss\VirtualDirectories\80</a>.</p>
<p>In this web.config you will find an XML node called &#8220;httpRuntime&#8221;. In this node you have to add an extra tag: executionTimeout=&#8221;9000&#8243;:</p>
<blockquote><p>&lt;httpRuntime maxRequestLength=&#8221;51200&#8243; executionTimeout=&#8221;9000&#8243; /&gt;</p></blockquote>
<p>Save and close the file and do an IISReset. When you run the report again, you won&#8217;t get this error anymore.</p>
<p>I also checked the web.config of the Report Manager, but in Native Mode this seems to be the default:</p>
<div id="ap_v" style="text-align: left;"><a href="http://blog.davyknuysen.be/wp-content/uploads/2010/03/web.config-SSRS.jpg"><img class="size-full wp-image-176 alignnone" title="web.config SSRS" src="http://blog.davyknuysen.be/wp-content/uploads/2010/03/web.config-SSRS.jpg" alt="" width="397" height="182" /></a></div>
<p>Good luck!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F03%2F03%2Freporting-services-timeout-in-sharepoint%2F&amp;title=Reporting%20Services%20Timeout%20in%20Sharepoint" id="wpa2a_14"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/03/03/reporting-services-timeout-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>February 11th, next UG-evening on Service Broker</title>
		<link>http://blog.davyknuysen.be/2010/01/18/february-11th-next-ug-evening-on-service-broker/</link>
		<comments>http://blog.davyknuysen.be/2010/01/18/february-11th-next-ug-evening-on-service-broker/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 11:27:28 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLUG.BE]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/?p=167</guid>
		<description><![CDATA[SQL Server Service Broker and some of the things it can do for you” is brought to you by Nico Jacobs and will take place on February 11th. Since SQL server 2005, it is possible to build a Service Oriented Architecture (SOA) inside SQL Server. The component that enables this is the service broker, a [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Server Service Broker and some of the things it can do for you” is brought to you by Nico Jacobs and will take place on February 11th. Since SQL server 2005, it is possible to build a Service Oriented Architecture (SOA) inside SQL Server.</p>
<p>The component that enables this is the service broker, a message based system which allows for dialogs between two SQL server instances. In this session, we will first introduce the terminology and features of this framework, then we will discuss some of the scenarios in which it can be used, and we will conclude by implementing a small service broker application. Dr. Nico Jacobs was a researcher at the Computer Science department, KULeuven for seven years, where he obtained his PhD in machine learning (data mining). Since 2004, he is trainer and consultant at U2U, where he focuses primarily on SQL Server and the Business Intelligence back-end.</p>
<p>Free registration is now <a href="http://sqlug.be/nextevent/">open</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2010%2F01%2F18%2Ffebruary-11th-next-ug-evening-on-service-broker%2F&amp;title=February%2011th%2C%20next%20UG-evening%20on%20Service%20Broker" id="wpa2a_16"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2010/01/18/february-11th-next-ug-evening-on-service-broker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Day 2009 videos now available on Chopsticks</title>
		<link>http://blog.davyknuysen.be/2009/12/16/sql-server-day-2009-videos-now-available-on-chopsticks/</link>
		<comments>http://blog.davyknuysen.be/2009/12/16/sql-server-day-2009-videos-now-available-on-chopsticks/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 10:10:05 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Excel Services]]></category>
		<category><![CDATA[Integration Services]]></category>
		<category><![CDATA[MDX]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[PowerPivot]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLUG.BE]]></category>
		<category><![CDATA[Chopsticks]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/?p=165</guid>
		<description><![CDATA[Microsoft has made the sessions presented on SQL Server Day 2009 available on Chopsticks Opening Keynote by Wesley Backelant and Ritchie Houtmeyers Best Practices for SQL Server Consolidation by Tom Van Mulders Breaking the ETL world record with Integration Services by Henk van der Valk Designing Effective Aggregations in Analysyis Services 2008 by Chris Webb [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has made the sessions presented on SQL Server Day 2009 available on Chopsticks</p>
<ul>
<li><a href="http://www.microsoft.com/belux/MSDN/nl/chopsticks/default.aspx?id=1504" target="_blank">Opening Keynote</a> by Wesley Backelant and Ritchie Houtmeyers</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1493" target="_blank">Best Practices for SQL Server Consolidation</a> by Tom Van Mulders</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1498" target="_blank">Breaking the ETL world record with Integration Services</a> by Henk van der Valk</li>
<li><a href="http://www.microsoft.com/belux/MSDN/nl/chopsticks/default.aspx?id=1499" target="_blank">Designing Effective Aggregations in Analysyis Services 2008</a> by Chris Webb</li>
<li><a href="http://www.microsoft.com/belux/MSDN/nl/chopsticks/default.aspx?id=1500" target="_blank">High availability for BI DWH</a> by Patrick Tack</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1501" target="_blank">How New.NET Development technologies could change the live of the SQL DBA guy/girl</a> by Gill Cleeren &amp; Kurt Claeys</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1502" target="_blank">Implementing best practices with Policy Based Management</a> by Nico Jacobs</li>
<li><a href="http://www.microsoft.com/belux/MSDN/nl/chopsticks/default.aspx?id=1503" target="_blank">Introducing to PowerPivot or How I Learned to Stop Worrying and Love Excel</a> by Chris Webb</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1505%20" target="_blank">Tracking Changes and Data movement in SQL Server 2008</a> by Dirk Gubbels</li>
<li><a href="http://www.microsoft.com/belux/TechNet/nl/chopsticks/default.aspx?id=1506%20" target="_self">Handling XML in SQL Server</a> by Nico Jacobs</li>
</ul>
<p>Have fun!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2009%2F12%2F16%2Fsql-server-day-2009-videos-now-available-on-chopsticks%2F&amp;title=SQL%20Server%20Day%202009%20videos%20now%20available%20on%20Chopsticks" id="wpa2a_18"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2009/12/16/sql-server-day-2009-videos-now-available-on-chopsticks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSAS: Custom format string for “duration” using MDX</title>
		<link>http://blog.davyknuysen.be/2009/12/07/ssas-custom-format-string-for-duration-using-mdx/</link>
		<comments>http://blog.davyknuysen.be/2009/12/07/ssas-custom-format-string-for-duration-using-mdx/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:38:20 +0000</pubDate>
		<dc:creator>Davy</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[MDX]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLServerPedia]]></category>
		<category><![CDATA[data]]></category>

		<guid isPermaLink="false">http://blog.davyknuysen.be/2009/12/07/ssas-custom-format-string-for-duration-using-mdx/</guid>
		<description><![CDATA[I recently struggled with the following challenge in Analysis Services: In one of the fact tables there was a field duration which actually was a duration of a certain status in seconds. I needed to display this in a readable format, like &#8220;2 days 22:15:59&#8243;. bing brought me to the following great article, where Mosha [...]]]></description>
			<content:encoded><![CDATA[<p>I recently struggled with the following challenge in Analysis Services:<br />
In one of the fact tables there was a field <strong>duration</strong> which actually was a duration of a certain status in seconds. I needed to display this in a readable format, like &#8220;2 days 22:15:59&#8243;.<br />
<strong><em></em></strong></p>
<p><strong><em><a href="http://www.bing.com">bing</a></em></strong> brought me to the following great article, where Mosha explains how you can use MDX to create a custom format:<br />
<a href="http://sqlblog.com/blogs/mosha/archive/2008/09/26/displaying-duration-values-mdx-expressions-in-format-string.aspx">http://sqlblog.com/blogs/mosha/archive/2008/09/26/displaying-duration-values-mdx-expressions-in-format-string.aspx</a></p>
<p>When you apply this for a calculated member you get something like this:</p>
<blockquote><p>    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDays]<br />
     AS [DurationInDays],<br />
    FORMAT_STRING =  <br />
        IIF([Measures].[Duration] &lt; 1<br />
         ,&#8217;&#8221;0 days&#8221; hh:mm:ss&#8217;<br />
         ,&#8217;&#8221;&#8216; + cstr(int([Measures].[Duration])) + &#8216; days&#8221; hh:mm:ss&#8217;)<br />
    ,<br />
    VISIBLE = 1;</p></blockquote>
<p>But this brings us to another problem:<br />
This custom format will only display the correct result if [Measures].[Duration] contains <em><strong>decimal seconds</strong></em>.<br />
For more information about the conversion from seconds to decimal seconds, read the following article on wikipedia: <a href="http://en.wikipedia.org/wiki/Decimal_time">http://en.wikipedia.org/wiki/Decimal_time</a><br />
In short, you need to divide the number of seconds by 86.400. The resulting number presents the number of days on the left side of the decimal separator and the remaining decimal seconds on the right side.</p>
<p>So the final result will be something like this:</p>
<blockquote><p>    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDecimalSeconds]<br />
     AS<br />
        [Measures].[DurationInSeconds] / 86400,<br />
    VISIBLE = 0;  </p>
<p>    CREATE MEMBER CURRENTCUBE.[Measures].[DurationInDays]<br />
     AS [Measures].[DurationInDecimalSeconds],<br />
    FORMAT_STRING =  <br />
        IIF([Measures].[DurationInDecimalSeconds] &lt; 1<br />
         ,&#8217;&#8221;0 days&#8221; hh:mm:ss&#8217;<br />
         ,&#8217;&#8221;&#8216; + cstr(int([Measures].[DurationInDecimalSeconds])) + &#8216; days&#8221; hh:mm:ss&#8217;)<br />
    ,<br />
    VISIBLE = 1;</p></blockquote>
<p>If you want this custom format to be displayed in Excel, make sure the connection properties are set correctly to retrieve the <strong><em>number format </em></strong>from the server:</p>
<p>Go to <em><strong>Connection Properties</strong></em>, tab <strong><em>Usage</em></strong>, and check <strong><em>Number Format</em></strong> in the <strong><em>OLAP Server Formatting</em></strong> options.</p>
<p><a href="http://blog.davyknuysen.be/wp-content/uploads/2009/12/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://blog.davyknuysen.be/wp-content/uploads/2009/12/image_thumb.png" border="0" alt="image" width="341" height="410" /></a> </p>
<p>There is one more thing I would like to tell you about these options: Normally all these options will always be checked by default, but I’ve noticed that when you start from an existing odc-file, this is not the case. So, when you’re used to deliver an odc-file to your users to start analyzing from Excel, you will have to replace this odc-file by an Excel template that connects to the cube, to make sure this option is always on.</p>
<p>There might be a better way to change this behavior for odc-files, but I couldn’t find any. If you know it, please let me know <img src='http://blog.davyknuysen.be/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p> </p>
<p>Enjoy!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.davyknuysen.be%2F2009%2F12%2F07%2Fssas-custom-format-string-for-duration-using-mdx%2F&amp;title=SSAS%3A%20Custom%20format%20string%20for%20%E2%80%9Cduration%E2%80%9D%20using%20MDX" id="wpa2a_20"><img src="http://blog.davyknuysen.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.davyknuysen.be/2009/12/07/ssas-custom-format-string-for-duration-using-mdx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

