<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://prologika.com/CS/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Prologika (Teo Lachev&amp;#39;s Weblog)</title><subtitle type="html">Teo Lachev is a consultant, mentor, and author focusing on the design and development of Microsoft business intelligence solutions. Read about Teo&amp;#39;s work and life. Registered users can post comments.</subtitle><id>http://prologika.com/CS/blogs/blog/atom.aspx</id><link rel="alternate" type="text/html" href="http://prologika.com/CS/blogs/blog/default.aspx" /><link rel="self" type="application/atom+xml" href="http://prologika.com/CS/blogs/blog/atom.aspx" /><generator uri="http://communityserver.org" version="4.1.40407.4157">Community Server</generator><updated>2009-12-02T09:00:00Z</updated><entry><title>Where is RDLOM in R2?</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/03/08/where-is-rdlom-in-r2.aspx" /><id>/CS/blogs/blog/archive/2010/03/08/where-is-rdlom-in-r2.aspx</id><published>2010-03-09T02:17:00Z</published><updated>2010-03-09T02:17:00Z</updated><content type="html">&lt;p&gt;After covering the cool new stuff in R2, it&amp;#39;s time to talk about the uncool. One R2 change that really vexes me is RDLOM. RDLOM, short for Report Definition Language Object Model, lets developers program RDL in object-oriented way as opposed to using XML. RDLOM could save you a lot of effort when you have to meet more advanced requirements that involve pre-processing RDL. For example, in one of my projects we had to implement a wizard that would walk business users through steps to generate an ad-hoc report. Behind the scenes, the wizard would generate the report definition by using a custom RDLOM which we developed since back then Microsoft didn&amp;#39;t have their own. I included a scaled-down version of our implementation in my &lt;a href="http://prologika.com/CS/media/p/2333.aspx"&gt;TechEd 2007 code sample&lt;/a&gt;. Although it took us a while to get our RDLOM implemented, it turned out to be invaluable down the road. Since we didn&amp;#39;t have to use XML API to manipulate RDL, it simplified programming RDL. For another project, we used RDLOM to let the customer specify which sections they want to see on the report. Once the selection was made, we would remove the unwanted sections from a report template. The list of real-life scenarios that could take advantage of RDLOM goes on &amp;hellip; &lt;/p&gt;
&lt;p&gt;Apparently, I wasn&amp;#39;t the only one bugging Microsoft about RDLOM that ships with SSRS and they promised that this will happen at TechED 2007 USA. Sure enough, SSRS 2008 brought us an unsupported version which I &lt;a href="http://prologika.com/CS/blogs/blog/archive/2007/08/14/rdl-object-model-on-the-horizon.aspx"&gt;blogged&lt;/a&gt; about and covered more extensively in my Applied SSRS 2008 book. Although unsupported, the SSRS 2008 RDLOM was very useful. It was implemented in a single assembly (Microsoft.ReportingServices.RdlObjectModel.dll), exposed all RDL elements as objects, and supported serializing and deserializing RDL. &lt;/p&gt;
&lt;p&gt;Alas, this will come to pass with R2. Upgrading to R2, you&amp;#39;ll find that the classes in Microsoft.ReportingServices.RdlObjectModel are marked as internal so you cannot use this assembly. Instead, RDLOM got moved into the Microsoft.ReportingServices.Designer.Controls.dll assembly. The good news is that there are rumors that RDLOM may get documented. Now the bad news: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Clearly, R2 RDLOM was not meant to be distributed. While you need to reference explicitly only Microsoft.ReportingServices.Designer.Controls and Microsoft.ReportingServices.RichText assemblies you&amp;#39;ll find that they are dependent on other assemblies and you need to distribute a total of 25 assemblies resulting in a whopping 25 MB of referenced code. One way to avoid shipping so many assemblies to deploy your application in the BIDS or Report Builder 3.0 folders. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="http://www.prologika.com/blog/030910_0215_WhereisRDLO1.png" alt="" /&gt; &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;R2 RDLOM will be 32-bit only because BIDS and Report Builder are 32-bit only. &lt;/li&gt;
&lt;li&gt;R2 RDLOM doesn&amp;#39;t support serializing the object model. I found a hack that uses .NET reflection to invoke the internal Serialize method of the old RDLOM 2008. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RDLOM R2 C# console application bundled in this &lt;a href="http://prologika.com/CS/media/p/4281.aspx"&gt;code sample&lt;/a&gt; demonstrates how you can use the &amp;quot;new&amp;quot; RDLOM. Besides referencing the new assemblies, you need to use the Load method to deserialize RDL to the object model: &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;report = &lt;span style="color:#2b91af;"&gt;Report&lt;/span&gt;.Load(fs); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And the above-mentioned hack to serialize it back to disk or stream. &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; (&lt;span style="color:#2b91af;"&gt;FileStream&lt;/span&gt; os = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;FileStream&lt;/span&gt;(ReportPath, &lt;span style="color:#2b91af;"&gt;FileMode&lt;/span&gt;.Create)) &lt;/span&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;Assembly&lt;/span&gt; assembly = &lt;span style="color:#2b91af;"&gt;Assembly&lt;/span&gt;.GetAssembly(&lt;span style="color:blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color:#2b91af;"&gt;Report&lt;/span&gt;)); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;object&lt;/span&gt; mc = assembly.CreateInstance(&lt;span style="color:#a31515;"&gt;&amp;quot;Microsoft.ReportingServices.RdlObjectModel.Serialization.RdlSerializer&amp;quot;&lt;/span&gt;); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;Type&lt;/span&gt; t = mc.GetType(); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;MethodInfo&lt;/span&gt; mi = t.GetMethod(&lt;span style="color:#a31515;"&gt;&amp;quot;Serialize&amp;quot;&lt;/span&gt;, &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;Type&lt;/span&gt;[] { &lt;span style="color:blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color:#2b91af;"&gt;Stream&lt;/span&gt;), &lt;span style="color:blue;"&gt;typeof&lt;/span&gt;(&lt;span style="color:#2b91af;"&gt;Report&lt;/span&gt;) }); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;report = (&lt;span style="color:#2b91af;"&gt;Report&lt;/span&gt;)mi.Invoke(mc, &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:blue;"&gt;object&lt;/span&gt;[] { os, report }); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Other than that, RDLOM remains virtually unchanged from 2008 excluding that it now supports the R2 enhancements to RDL. What if you don&amp;#39;t need this overhead but you need to make small changes to RDL that don&amp;#39;t necessarily require an object-oriented layer. I&amp;#39;ve found that the easiest way to do this and avoid XML programming is to use LINQ to XML. The LINQ to XML project included in the same sample demonstrates this approach. For example, the following code changes the data source reference of the first data source. &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; Main(&lt;span style="color:blue;"&gt;string&lt;/span&gt;[] args) &lt;/span&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;XElement&lt;/span&gt; report = &lt;span style="color:#2b91af;"&gt;XElement&lt;/span&gt;.Load(&lt;span style="color:#a31515;"&gt;&amp;quot;report.rdl&amp;quot;&lt;/span&gt;); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt; dns = &lt;span style="color:#a31515;"&gt;&amp;quot;{&amp;quot;&lt;/span&gt; + report.GetDefaultNamespace() + &lt;span style="color:#a31515;"&gt;&amp;quot;}&amp;quot;&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;XElement&lt;/span&gt; ds = report.Element(dns + &lt;span style="color:#a31515;"&gt;&amp;quot;DataSources&amp;quot;&lt;/span&gt;).Element(dns + &lt;span style="color:#a31515;"&gt;&amp;quot;DataSource&amp;quot;&lt;/span&gt;).Element(dns + &lt;span style="color:#a31515;"&gt;&amp;quot;DataSourceReference&amp;quot;&lt;/span&gt;); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;ds.Value = &lt;span style="color:#a31515;"&gt;&amp;quot;/Data Sources/AdventureWorksAS2008&amp;quot;&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;report.Save(&lt;span style="color:#a31515;"&gt;&amp;quot;report1.rdl&amp;quot;&lt;/span&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Not happy about the RDLOM story? Join the movement and vote for &lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/540183/supported-rdl-object-model-rdlom"&gt;my suggestion&lt;/a&gt; on connect.microsoft.com to have a supported RDLOM. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4283" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SQL Server 2008 R2" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SQL+Server+2008+R2/default.aspx" /></entry><entry><title>How Windows UAC Got Me Again</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/03/02/how-windows-uac-got-me-again.aspx" /><id>/CS/blogs/blog/archive/2010/03/02/how-windows-uac-got-me-again.aspx</id><published>2010-03-02T21:17:00Z</published><updated>2010-03-02T21:17:00Z</updated><content type="html">&lt;p&gt;User Access Control (UAC) is a feature of Windows Vista, Windows 7, and Windows Server 2008 that prevents you from running applications with administrator rights even if you are a local admin on the box. Although I have to admit I hate UAC, I am convinced that it&amp;#39;s better to have it around especially after my home desktop got infected a few months ago with a rootkit virus so badly that I had to restore the disk from a backup. So, UAC is a necessary evil. But since it&amp;#39;s relatively new, not many application developers test for UAC and this can get you as it happened in the following story. &lt;/p&gt;
&lt;p&gt;A coworker complained that Reporting Services SharePoint integration doesn&amp;#39;t work on a distributed environment where SharePoint is installed on the front end Windows 2008 server and the SharePoint configuration database is installed on a separate database server. As usual, my first stop for troubleshooting SharePoint integration with Reporting Services was to examine the log file which gets generated after installing the Reporting Services Add-in for SharePoint, as I &lt;a href="http://prologika.com/CS/blogs/blog/archive/2008/11/19/troubleshooting-the-sharepoint-add-in-for-reporting-services.aspx"&gt;explained&lt;/a&gt; in this blog. On Windows Server 2008, the log file is located in the Temp folder of the user running the add-in setup, such as C:\Users\&amp;lt;user&amp;gt;\AppData\Local\Temp. To make the quest even more interesting, the AppData folder is actually hidden by default on Windows Server 2008 and Windows Vista/7 (another security gotcha), so you have to use Folder and Search Options to enable hidden files so you can see it. Are you having fun yet? &lt;/p&gt;
&lt;p&gt;In this case, the log file showed an error: &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;User: SYSTEM &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;Installing Report Server feature. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;Calling copyappbincontents command. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;copyappbincontents command completed successfully. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;Adding Report Server feature to farm. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:9pt;"&gt;Install error: The EXECUTE permission was denied on the object &amp;#39;proc_putObject&amp;#39;, database &amp;#39;IWSharePointCluster_Config&amp;#39;, schema &amp;#39;dbo&amp;#39;. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, SharePoint can&amp;#39;t connect to the database server. What&amp;#39;s interesting is that the log file reported that the user is SYSTEM and not the logon of the interactive user. Luckily, Prash Shirolkar from the SSRS team &lt;a href="http://blogs.msdn.com/prash/archive/2009/09/01/error-installing-rssharepoint-msi-on-windows-2008.aspx"&gt;blogged&lt;/a&gt; about this and provided a workaround for this issue which will get fixed in R2 RTM. Gotta love UAC&amp;hellip;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4252" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SharePoint" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SharePoint/default.aspx" /></entry><entry><title>New Reporting Services Data Providers</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/02/28/new-reporting-services-data-providers.aspx" /><id>/CS/blogs/blog/archive/2010/02/28/new-reporting-services-data-providers.aspx</id><published>2010-02-28T15:39:00Z</published><updated>2010-02-28T15:39:00Z</updated><content type="html">&lt;p&gt;Two new data providers will be included in the SQL Server 2008 R2 release of Reporting Services, &lt;strong&gt;Microsoft SQL Azure&lt;/strong&gt; and &lt;strong&gt;Microsoft SQL Server Parallel Data Warehouse&lt;/strong&gt;, that will let you report from &lt;a href="http://www.microsoft.com/windowsazure/sqlazure/"&gt;SQL Azure&lt;/a&gt; and &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/parallel-data-warehouse.aspx"&gt;SQL Server 2008 R2 Parallel Data Warehouse&lt;/a&gt; (code named Madison) databases respectively. I decided to take the Microsoft SQL Azure data provider for a spin. As you probably know by now, SQL Azure is a part of the Microsoft Windows Azure SaaS cloud offering. SQL Azure lets you host your SQL Server relational databases in the Microsoft data centers that provide scalability and fault tolerance services. This is great for companies of all sizes which don&amp;#39;t have resources or expertise to purchase and configure expensive hardware and software in order bo build scalable and highly available solutions. IMO, SQL Azure will be increasingly important, especially after Reporting Services and Analysis Services become available on SQL Azure although Microsoft doesn&amp;#39;t say yet when this will happen. At this point, you can only use Reporting Services as a client to author reports from SQL Azure-hosted databases. &lt;/p&gt;
&lt;p&gt;Strictly, speaking if your database is hosted in SQL Azure, you can use the SQL Server or OLE DB providers (already included in Reporting Services) to send queries to SQL Azure. Just like on-premise solutions,&amp;nbsp;SQL Server Azure clients retrieve data using the native SQL Server Tabular Data Stream (TDS).&amp;nbsp;However, if you decide to use the native&amp;nbsp;SQL Server providers, you will run into&amp;nbsp;some issues with retrieving SQL Azure metadata. Hence, Microsoft added the SQL Azure data provider. To test it out, I followed these steps: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I signed up for SQL Azure. If you MSDN Universal subscriber, you can &lt;a href="http://msdn.microsoft.com/en-us/subscriptions/ee461076.aspx"&gt;sign up&lt;/a&gt; to test SQL Azure for eight months for free. &lt;/li&gt;
&lt;li&gt;I deployed the AdventureWorksDW2008R2 and AdventureWorksLT2008R2 databases to my SQL Azure server. The Adventure Works database deployment scripts for SQL Azure &lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/37304"&gt;are available&lt;/a&gt; on codeplex. They will create &lt;em&gt;AdventureWorksDWAZ2008R2 &lt;/em&gt;and&lt;em&gt; AdventureWorksLTAZ2008R2 &lt;/em&gt;database on your SQL Azure server. &lt;/li&gt;
&lt;li&gt;Installed SQL Server 2008 R2 Release Candidate which is &lt;strong&gt;not&lt;/strong&gt; publicly available. &lt;/li&gt;
&lt;li&gt;Created a new report in BIDS. As usual, I added a data source and selected the Microsoft SQL Azure provider.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.prologika.com/blog/022810_1539_NewReportin1.png" alt="" /&gt; &lt;/li&gt;
&lt;li&gt;In the Connection Properties dialog box, I entered the name of my SQL Azure server and my standard security credentials (Windows security is not supported on SQL Azure). For some reason, the database dropdown is not automatically populated so I had to enter the name of the database &lt;em&gt;AdventureWorksDWAZ2008R2&lt;/em&gt; manually. &lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Once connectivity has been taken care of, life is as usual. The Graphical Query Designer (toggle the Edit as Text button if the generic query designer starts first) shows the database schema.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.prologika.com/blog/022810_1539_NewReportin2.png" alt="" /&gt; &lt;/div&gt;
&lt;p&gt;One thing that surprised me was the performance of data retrieval. Even when I opted to get all data from FactInternetSales, which has thousands of rows, the query executed pretty fast.&amp;nbsp; One caveat though with this approach is that you have open port 1433 on your corporate network because this is the port SQL Server uses for client connections. This is not required if your application is installed on Windows Azure and connects to the SQL Azure database on the server.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4244" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SQL Server 2008 R2" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SQL+Server+2008+R2/default.aspx" /></entry><entry><title>Beware Hidden Calculated Members</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/01/18/beware-hidden-calculated-members.aspx" /><id>/CS/blogs/blog/archive/2010/01/18/beware-hidden-calculated-members.aspx</id><published>2010-01-18T23:06:07Z</published><updated>2010-01-18T23:06:07Z</updated><content type="html">&lt;p&gt;Here is another one of those &amp;quot;by design&amp;quot; issues (see the Not All Calculated Members Are Born Equal &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/11/13/not-all-calculated-members-are-born-equal.aspx"&gt;blog&lt;/a&gt; for another recent gotcha) that are not documented but can sure waste you precious time figuring out. The issue was first &lt;a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=434253"&gt;submitted&lt;/a&gt; on connect.microsoft.com by Greg Galloway almost a year ago where it was left in an investigation phase (what can we do to get the SSAS team actually review the connect cases and post findings?). Then, I &lt;a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=508308"&gt;submitted&lt;/a&gt; a similar issue and official support case since I was 100% sure it was a bug and I needed a closure. Alas, Microsoft came back to declare it &amp;quot;by design&amp;quot;:
&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;quot;…per feedback from several AS 2005 Beta customers, for compatibility with pre-existing AS 2000 behavior, AS 2005 RTM (and later releases) was changed to not include hidden calculated members in cell calculations and scopes (except when a hidden calculated member is explicitly referenced in the calculation scope).&amp;quot;
&lt;/em&gt;&lt;/p&gt;&lt;p&gt;The issue affects hidden calculated members and scope assignments where a scope assignment simply ignores hidden calculated members if they are not explicitly referenced by the script. You can easily repro the issue by making the following changes to the Adventure Works script:
&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:green;"&gt;/*-- Allocate equally to quarters in H2 FY 2005 ------------------------*/&lt;/span&gt;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;CREATE&lt;/span&gt;
			&lt;span style="color:blue;"&gt;MEMBER&lt;/span&gt;
			&lt;span style="color:blue;"&gt;CURRENTCUBE&lt;/span&gt;.[Measures].[Visible Quota] A&lt;span style="color:blue;"&gt;S&lt;/span&gt;
			&lt;span style="color:blue;"&gt;null&lt;/span&gt;, 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;FORMAT_STRING&lt;/span&gt; = &lt;span style="color:#a31515;"&gt;&amp;quot;Currency&amp;quot;&lt;/span&gt;, 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;strong&gt;&lt;span style="color:blue;"&gt;VISIBLE&lt;/span&gt; = 1&lt;/strong&gt; ,  &lt;span style="color:blue;"&gt;ASSOCIATED_MEASURE_GROUP&lt;/span&gt; = &lt;span style="color:#a31515;"&gt;&amp;#39;Sales Targets&amp;#39;&lt;/span&gt;  ;  
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;CREATE&lt;/span&gt;
			&lt;span style="color:blue;"&gt;MEMBER&lt;/span&gt;
			&lt;span style="color:blue;"&gt;CURRENTCUBE&lt;/span&gt;.[Measures].[Invisible Quota] &lt;span style="color:blue;"&gt;AS&lt;/span&gt;
			&lt;span style="color:blue;"&gt;null&lt;/span&gt;, 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;FORMAT_STRING&lt;/span&gt; = &lt;span style="color:#a31515;"&gt;&amp;quot;Currency&amp;quot;&lt;/span&gt;, 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;strong&gt;&lt;span style="color:blue;"&gt;VISIBLE&lt;/span&gt; = 0 &lt;/strong&gt;,  &lt;span style="color:blue;"&gt;ASSOCIATED_MEASURE_GROUP&lt;/span&gt; = &lt;span style="color:#a31515;"&gt;&amp;#39;Sales Targets&amp;#39;&lt;/span&gt;  ;  
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;Scope&lt;/span&gt;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt; ( 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;    [Date].[Fiscal Year].&amp;amp;[2005],
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;    [Date].[Fiscal].[Fiscal Quarter].&lt;span style="color:blue;"&gt;Members
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;);    
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;
			&lt;span style="color:blue;"&gt;this&lt;/span&gt; = (&lt;span style="color:maroon;"&gt;ParallelPeriod&lt;/span&gt;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;          ( 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;             [Date].[Fiscal].[Fiscal Year], 1,
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;             [Date].[Fiscal].&lt;span style="color:maroon;"&gt;CurrentMember&lt;/span&gt;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;          ), [Measures].[Sales Amount Quota]) * 1.35;&lt;/span&gt;
	&lt;/p&gt;&lt;p&gt;Here, I created two identical calculated members with the only difference that the first one is visible and second one hidden. Then, execute the following query:
&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;SELECT&lt;/span&gt; {[Measures].[Sales Amount Quota], [Measures].[Visible Quota], [Measures].[Invisible Quota]} &lt;span style="color:blue;"&gt;on&lt;/span&gt; 0
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;FROM&lt;/span&gt; [Adventure Works] 
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;WHERE&lt;/span&gt; [Date].[Fiscal].[Fiscal Quarter].&amp;amp;[2005]&amp;amp;[1]
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;And here are the results (surprise!):
&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.prologika.com/blog/011810_2304_BewareHidde1.png" alt="" /&gt;
	&lt;/p&gt;&lt;p&gt;The Visible Quota member is populated as it should be but Invisible Quota refuses to budge as the script simply ignores it. If the script scopes on the Invisible Quota member explicitly or you make it visible, then we get the expected results. Since the issue is by design and a fix won&amp;#39;t be available anytime soon, you should be very careful when you use hidden calculated members and expect them to be affected by scope assignments. I use often helper calculated members which I hide since they shouldn&amp;#39;t be visible to the end users. This issue hit me really hard after QA reported wrong results and your humble correspondent had to debug a cube with some 1000+ lines of code. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4170" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Analysis Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Analysis+Services/default.aspx" /></entry><entry><title>Report Builder 3.0 Edit Sessions</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/01/18/report-builder-3-0-edit-sessions.aspx" /><id>/CS/blogs/blog/archive/2010/01/18/report-builder-3-0-edit-sessions.aspx</id><published>2010-01-18T14:25:00Z</published><updated>2010-01-18T14:25:00Z</updated><content type="html">&lt;p&gt;When Report Builder 2.0 shipped , it introduced local and server preview modes. If the report uses local references only, such an embedded data source(s), Report Builder 2.0 executes the query and renders the report locally just like the BIDS Report Designer. However, when the report uses a server reference, such as shared data source(s) or subreports that were saved on the server, Report Builder 2.0 would transparently upload and process the report on the server just like the Report Builder 1.0. &lt;/p&gt;
&lt;p&gt;Report Builder 3.0 improves the performance of server preview mode by introducing &lt;strong&gt;edit sessions&lt;/strong&gt;. An edit session is implicitly created when the user runs the report for the first time. Behind the scenes, Report Builder 3.0 calls the new CreateReportEditSession API to instruct the server to create an edit session. The server caches the report dataset(s) in the ReportServerTempDB database (not in memory) and uses the cached data for subsequent previews. In this respect, you can think of edit sessions as the *.data files that the BIDS Report Designer generates to cache the report data in order to speed up&amp;nbsp;report preview. As long as you don&amp;#39;t make changes to the report that affect the data, such as changes to the dataset itself, data source, or parameters, the cached copy of the data is used by the report. This means that the user may not see changes that might have taken place in the database for the duration of the edit session. To make sure that the latest data is used, click the Refresh button on the Report Builder 3.0 toolbar. Refreshing the report discards the edit session and executes the database queries. &lt;/p&gt;
&lt;p&gt;The administrator can configure two new server properties to manage edit sessions: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;EditSessonCacheLimit - By default, the data cache can hold up to five datasets per report and user. Note that if the dataset is parameterized, each parameter combination counts as one dataset. If you use many different combinations of parameter values, the report might need more cached dataset copies. The administrator can allow this by increasing the EditSessonCacheLimit setting. &lt;/li&gt;
&lt;li&gt;EditSessionTimeout - By default, an edit session lasts 7200 seconds (2 hours). The servers resets the session every two hours when the user previews the report. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="http://www.prologika.com/blog/011810_1424_ReportBuild1.png" alt="" /&gt; &lt;/p&gt;
&lt;p&gt;Report Builder 3.0 edit sessions are a performance-related enhancement that makes server-side report preview more efficient.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4169" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SQL Server 2008 R2" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SQL+Server+2008+R2/default.aspx" /></entry><entry><title>Report Builder 3.0 Enhancements in R2 and SharePoint 2010 Mode</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/01/12/report-builder-enhancements-in-sharepoint-mode.aspx" /><id>/CS/blogs/blog/archive/2010/01/12/report-builder-enhancements-in-sharepoint-mode.aspx</id><published>2010-01-13T03:06:00Z</published><updated>2010-01-13T03:06:00Z</updated><content type="html">&lt;p&gt;A couple of Report Builder enhancements in SharePoint 2010&amp;nbsp;integration mode caught my attention. First, Report Builder 3.0 now launches by default when the Open in Report Builder action is initiated inside SharePoint 2010. Previously, Report Builder 1.0 would be launched. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.prologika.com/blog/011310_0305_ReportBuild1.png" alt="" /&gt; &lt;/p&gt;
&lt;p&gt;Second, if the report includes a drillthrough action to another report, the action now works when the action is initiated from Report Builder 3.0 preview mode. As it turns out, a drillthrough action is forwarded directly to SharePoint. Previously, a report drillthrough action will result in an error because the Report Builder would attempt to resolve the action locally. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4146" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SQL Server 2008 R2" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SQL+Server+2008+R2/default.aspx" /></entry><entry><title>ReportService2010 Endpoint</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/01/12/reportservice2010-endpoint.aspx" /><id>/CS/blogs/blog/archive/2010/01/12/reportservice2010-endpoint.aspx</id><published>2010-01-13T02:29:57Z</published><updated>2010-01-13T02:29:57Z</updated><content type="html">&lt;p&gt;Here is a little gem for developers programming Reporting Services. SQL Server 2008 R2 brings a new web service endpoint, &lt;strong&gt;ReportService2010&lt;/strong&gt;, which merges the functionalities of the ReportService2005 and ReportService2006 endpoints. The new endpoint can manage objects on a report server that that are configured for either native or SharePoint integrated mode. Previously, the ReportService2005 endpoint was used for managing objects on a report server that is configured for native mode and the ReportService2006 endpoint was used for managing objects on a report server that is configured for SharePoint integrated mode. This required code changes and retesting if the report server was re-configured in a different mode.  These endpoints are now deprecated but still supported. The ReportService2010 endpoint includes the functionalities of both endpoints. When unsupported APIs in ReportService2010 are invoked, such as invoking the CreateLinkedReport API in SharePoint mode which doesn&amp;#39;t support linked reports, the endpoint will return an error that the operation is not supported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4145" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="SQL Server 2008 R2" scheme="http://prologika.com/CS/blogs/blog/archive/tags/SQL+Server+2008+R2/default.aspx" /></entry><entry><title>Virtual Adventures</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2010/01/07/virtual-adventures.aspx" /><id>/CS/blogs/blog/archive/2010/01/07/virtual-adventures.aspx</id><published>2010-01-07T23:48:58Z</published><updated>2010-01-07T23:48:58Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;Scenario&lt;/strong&gt;: Mount base and differencing VHD disks using Windows Virtual PC on Windows 7 x64.
&lt;/p&gt;&lt;p&gt;Dude, did you run out of BI stuff to talk about? I didn&amp;#39;t but I think other folks may benefit from my experience especially MCTs who have discovered that Windows 7 hasn&amp;#39;t happened yet to the Microsoft Official Curriculum and resorted to all sorts of hacks to get Virtual Server 2005 or Lab Launcher working with Windows 7. In the process, I&amp;#39;ve learned a lot about the virtualization technology that goes beyond just mounting disks. OK, I have a hidden agenda to write this blog as well – I want to document these steps.
&lt;/p&gt;&lt;p&gt;So, I am preparing to teach 6326A - Implementing and Maintaining Microsoft SQL Server 2008 Reporting Services in an instructor-led environment where I have to install the required software on the student&amp;#39;s machine. After downloading the trainer resources, I have discovered that Microsoft provides 6236A-NY-SQL-01.vhd disk which requires a base disk Base08A.vhd. Reading the setup guide included in the course revealed that Microsoft wants me to install Virtual Server 2005 on both the instructor and students machines.
&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Gotcha 1&lt;/strong&gt;: Virtual Server 2005 doesn&amp;#39;t run on Windows 7. Browsing the MCT private groups I came across posts discussing a hack around this limitation but I didn&amp;#39;t want go that way. Not to mention that Microsoft Lab Launcher, which apparently is intended to simplify the VHD deployment to student machines, doesn&amp;#39;t run on Win 7 as well. A double-gotcha which picked up my interest and stirred my hacking instincts to get the whole thing working with Virtual PC. After all, I can&amp;#39;t control what OS the students run or the training center has installed.
&lt;/p&gt;&lt;p&gt;OK, but this is just VHD disk, isn&amp;#39;t it? So, it should run on Windows Virtual PC, right? So, I created a new virtual machine and attempted to mount 6236A-NY-SQL-01.vhd but I was greeted with the following informative error:
&lt;/p&gt;&lt;p&gt;&lt;span style="color:#c00000;"&gt;&lt;span style="font-family:Verdana;font-size:8pt;"&gt;Cannot attach the virtual hard disk to the virtual machine. Check the values provided and try again.&lt;/span&gt;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Then I mounted Base08A.vhd and I was able to boot the VM only to find out that it includes the Windows Server 2008 OS only. Where is the cool SQL Server BI stuff? This is the part where I realized that my virtual knowledge needs brushing up. Enter &lt;a href="http://technet.microsoft.com/en-us/library/cc720381(WS.10).aspx"&gt;differencing disks&lt;/a&gt;.  This of course is not explained in the setup document, so don&amp;#39;t try to find it there. I figured that Base08A.vhd is the base disk that has the OS only while the 6236A-NY-SQL-01.vhd is the differencing disk that has the rest (SQL Server 2008 + Reporting Services samples and Adventure Works database) installed. To prove my hypothesis, I used the Sun&amp;#39;s &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt;. I use VirtualBox for my personal VM work because it supports x64 guess OS, which Virtual PC doesn&amp;#39;t support (shame). I used the Disk Manager to add both the base and difference images and … lo and behold, the VM booted up and I was able to verify that SQL Server 2008 and rest of the goodies are installed. 
&lt;/p&gt;&lt;p&gt;But I didn&amp;#39;t want to force the students to install VirtualBox so I continued hacking my way to Windows Virtual PC. In a Eureka moment, I examined the Windows Event log and saw the following message:
&lt;/p&gt;&lt;p&gt;&lt;span style="color:#c00000;font-family:Verdana;font-size:8pt;"&gt;The parent virtual hard disk &amp;#39;C:\Program Files\Microsoft Learning\Base\Base08A.vhd&amp;#39; for the differencing virtual hard disk &amp;#39;C:\VPC\3263\6236A-NY-SQL-01.vhd&amp;#39; does not exist. Please reconnect the differencing virtual hard disk to the correct parent virtual hard disk.
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;So, the base disk path is hardcoded in the differencing image. The following commands confirmed this.
&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Went to command prompt and entered (the actual commands are in bold):
&lt;/div&gt;&lt;p&gt;&lt;strong&gt;C:\&amp;gt;Diskpart
&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;DISKPART&amp;gt; select vdisk file=&amp;quot;c:\vpc\6236\6236A-NY-SQL-01.vhd&amp;quot;
&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;DiskPart successfully selected the virtual disk file.
&lt;/p&gt;&lt;p&gt;&lt;strong&gt;DISKPART&amp;gt; detail vdisk
&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Device type ID: 2 (VHD)
&lt;/p&gt;&lt;p&gt;Vendor ID: {EC984AEC-A0F9-47E9-901F-71415A66345B} (Microsoft Corporation)
&lt;/p&gt;&lt;p&gt;State: Added
&lt;/p&gt;&lt;p&gt;Virtual size:   64 GB
&lt;/p&gt;&lt;p&gt;Physical size:    9 GB
&lt;/p&gt;&lt;p&gt;Filename: c:\vpc\6236\6236A-NY-SQL-01.vhd
&lt;/p&gt;&lt;p&gt;Is Child: Yes
&lt;/p&gt;&lt;p&gt;&lt;em&gt;Parent Filename: C:\Program Files\Microsoft Learning\Base\Base08A.vhd
&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Associated disk#: Not found.
&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;I moved the based image (Base08A.vhd) to C:\Program Files\Microsoft Learning\Base. With a baited breath, I repeated the process of creating a new virtual machine in Windows Virtual PC pointing to the existing 6236A-NY-SQL-01.vhd but I got the first error:
&lt;/div&gt;&lt;p&gt;&lt;span style="color:#c00000;"&gt;&lt;span style="font-family:Verdana;font-size:8pt;"&gt;Cannot attach the virtual hard disk to the virtual machine. Check the values provided and try again.&lt;/span&gt;
				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;No more details in the Windows event log. At this point, I posted a &lt;a href="http://social.technet.microsoft.com/Forums/en-US/w7itprovirt/thread/0bea3399-7f2f-4f86-8d14-9801959a6c69/"&gt;question&lt;/a&gt; to the Windows 7 Virtualization discussion forum and I was clued in the disk virtual size (not physical size) could be the issue since Virtual PC doesn&amp;#39;t support disks larger than 127 GB. Although after attaching the 6236A-NY-SQL-01.vhd using the Windows 7 Disk Manager I could see that the virtual size is 64 GB, I compacted the base disk using these &lt;a href="http://blog.wisefaq.com/2009/12/31/how-to-fix-the-cannot-attach-the-virtual-hard-disk/"&gt;steps&lt;/a&gt;. That didn&amp;#39;t help and the hour was getting late. So I threw the white towel on the differencing disk approach (for now) and decided to merge the differencing disk into the base disk.
&lt;/p&gt;&lt;p&gt;Assuming the commands in step 1), I executed the following commands:
&lt;/p&gt;&lt;p&gt;&lt;strong&gt;DISKPART&amp;gt;detach vdisk
&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;DiskPart successfully detached the virtual disk file.
&lt;/p&gt;&lt;p&gt;&lt;strong&gt;DISKPART&amp;gt;merge vdisk depth=1&lt;/strong&gt;
			&lt;/p&gt;&lt;p&gt;100 percent complete
&lt;/p&gt;&lt;p&gt;(after a long wait …)
&lt;/p&gt;&lt;p&gt;DiskPart successfully merged the differencing chain.
&lt;/p&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Now that I had the disks merged I was able to create a new virtual machine successfully using the base disk image (Base08A.vhd) which combined both the original and differencing disks. Since the differencing disk was merged, I could delete 6236A-NY-SQL-01.vhd.
&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;strong&gt;Gotcha 2&lt;/strong&gt;: After booting the virtual machine, I was able to log in using the pre-defined Student account. However, attempting to run the SQL Server Management Studio, I got an error that the SQL Server 2008 evaluation period has expired. I attempted to reset the Windows Server 2008 (guest OS) system date, but after a few seconds the date would revert to the present date. More binging the Internet solved the issue.
&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Shut down the VM.
&lt;/li&gt;&lt;li&gt;Open the vmc file in Notepad.
&lt;/li&gt;&lt;li&gt;Chang the last six digits to a year ago (070109)&lt;br /&gt;&amp;lt;time_bytes type=&amp;quot;bytes&amp;quot;&amp;gt;57002400060004&lt;strong&gt;070109&lt;/strong&gt;&amp;lt;/time_bytes&amp;gt;
&lt;/li&gt;&lt;li&gt;&lt;div&gt;Further down the file, disable guest-to-host OS time synchronization:&lt;br /&gt;&amp;lt;host_time_sync&amp;gt;
&lt;/div&gt;&lt;p&gt;&amp;lt;enabled type=&amp;quot;boolean&amp;quot;&amp;gt;&lt;strong&gt;false&lt;/strong&gt;&amp;lt;/enabled&amp;gt;
&lt;/p&gt;&lt;p&gt;    &amp;lt;frequency type=&amp;quot;integer&amp;quot;&amp;gt;15&amp;lt;/frequency&amp;gt;
&lt;/p&gt;&lt;p&gt;    &amp;lt;threshold type=&amp;quot;integer&amp;quot;&amp;gt;10&amp;lt;/threshold&amp;gt;
&lt;/p&gt;&lt;p&gt; &amp;lt;/host_time_sync&amp;gt;
&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Boot VM. Now change the system date to 07-01-09. 
&lt;/div&gt;&lt;p&gt;
 &lt;/p&gt;&lt;p&gt;Success!&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4127" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Training" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Training/default.aspx" /><category term="Windows" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Windows/default.aspx" /></entry><entry><title>Most Requested Features </title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/21/most-requested-features.aspx" /><id>/CS/blogs/blog/archive/2009/12/21/most-requested-features.aspx</id><published>2009-12-21T21:06:51Z</published><updated>2009-12-21T21:06:51Z</updated><content type="html">&lt;p&gt;You can use the Microsoft Connect website to find most requested features. Unfortunately, the search doesn&amp;#39;t let you specify a product so the search results may be related to other products. For example, searching on &lt;em&gt;reporting services &lt;/em&gt;may bring in results from Analysis Services and &lt;em&gt;reporting&lt;/em&gt;. Nevertheless, it was quite interesting to find the top voted suggestions. For example, the following query shows the top suggestions for Reporting Services (flip to the Suggestions tab):
&lt;/p&gt;&lt;p&gt;&lt;a href="https://connect.microsoft.com/SQLServer/SearchResults.aspx?KeywordSearchIn=2&amp;amp;SearchQuery=%22reporting%22+AND+%22services%22&amp;amp;FeedbackType=1&amp;amp;Scope=0&amp;amp;SortOrder=10&amp;amp;TabView=0&amp;amp;wa=wsignin1.0"&gt;https://connect.microsoft.com/SQLServer/SearchResults.aspx?KeywordSearchIn=2&amp;amp;SearchQuery=%22reporting%22+AND+%22services%22&amp;amp;FeedbackType=1&amp;amp;Scope=0&amp;amp;SortOrder=10&amp;amp;TabView=0&amp;amp;wa=wsignin1.0&lt;/a&gt;
	&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Reporting Services-Recognize multiple result sets returned from a stored procedure – (50 votes)
&lt;/li&gt;&lt;li&gt;Merging / Linking datasets on report level (50 votes) – No 6 on my SSRS Top 10 &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/12/07/reporting-services-top-10-wish-list.aspx"&gt;wish list&lt;/a&gt;.
&lt;/li&gt;&lt;li&gt;SQL Reports should support stylesheets (43 votes) – No 9 on my list.
&lt;/li&gt;&lt;li&gt;Support for XML Paper Specification (XPS) Output Format (29 votes) – I am personally surprised about this one.
&lt;/li&gt;&lt;li&gt;Reporting Services Security Using Membership and Roles (29 votes), and so on
&lt;/li&gt;&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4091" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="General" scheme="http://prologika.com/CS/blogs/blog/archive/tags/General/default.aspx" /><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /><category term="Analysis Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Analysis+Services/default.aspx" /></entry><entry><title>Running ReportViewer Under Trusted Account</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/15/running-reportviewer-under-trusted-account.aspx" /><id>/CS/blogs/blog/archive/2009/12/15/running-reportviewer-under-trusted-account.aspx</id><published>2009-12-16T00:33:00Z</published><updated>2009-12-16T00:33:00Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;Scenario&lt;/strong&gt;: You have an Internet-facing web application that uses the Visual Studio ReportViewer control to render reports. The application takes care of authenticating the users. You want all report requests to the report server to go under a single (trusted) Windows account. There are at least two approaches to implement this scenario: &lt;/p&gt;
&lt;h2&gt;Basic Authentication &lt;/h2&gt;
&lt;p&gt;You can configure ReportViewer for basic authentication by implementing the &lt;span style="color:#2b91af;font-family:Courier New;font-size:10pt;"&gt;Microsoft.Reporting.WebForms&lt;/span&gt;.&lt;span style="color:#2b91af;font-family:Courier New;font-size:10pt;"&gt;IReportServerCredentials &lt;/span&gt;interface, as follows: &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;[&lt;span style="color:#2b91af;"&gt;Serializable&lt;/span&gt;] &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;MyReportServerCredentials&lt;/span&gt; : &lt;span style="color:#2b91af;"&gt;IReportServerCredentials &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; MyReportServerCredentials() &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;WindowsIdentity&lt;/span&gt; ImpersonationUser &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;get &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt; &lt;span style="color:blue;"&gt;null&lt;/span&gt;; &lt;span style="color:green;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;ICredentials&lt;/span&gt; NetworkCredentials &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;get &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt; &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;NetworkCredential&lt;/span&gt;( &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;ConfigurationManager&lt;/span&gt;.AppSettings[&lt;span style="color:#a31515;"&gt;&amp;quot;reportUser&amp;quot;&lt;/span&gt;], &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;ConfigurationManager&lt;/span&gt;.AppSettings[&lt;span style="color:#a31515;"&gt;&amp;quot;reportPassword&amp;quot;&lt;/span&gt;] &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-left:108pt;"&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;, &amp;quot;&amp;lt;your domain here&amp;gt;&amp;quot; &amp;ndash; comment out this line if a domain account is used as a trusted account &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-left:108pt;"&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:#2b91af;"&gt;)&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; &lt;span style="color:blue;"&gt;bool&lt;/span&gt; GetFormsCredentials(&lt;span style="color:blue;"&gt;out&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;Cookie&lt;/span&gt; authCookie, &lt;span style="color:blue;"&gt;out&lt;/span&gt; &lt;span style="color:blue;"&gt;string&lt;/span&gt; user, &lt;span style="color:blue;"&gt;out&lt;/span&gt; &lt;span style="color:blue;"&gt;string&lt;/span&gt; password, &lt;span style="color:blue;"&gt;out&lt;/span&gt; &lt;span style="color:blue;"&gt;string&lt;/span&gt; authority) &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;authCookie = &lt;span style="color:blue;"&gt;null&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;user = &lt;span style="color:blue;"&gt;null&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;password = &lt;span style="color:blue;"&gt;null&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;authority = &lt;span style="color:blue;"&gt;null&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt; &lt;span style="color:blue;"&gt;false&lt;/span&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;} &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Specifically, you need to implement the NetworkCredentials property of IReportServerCredentials. In my case, I read the trusted account credentials from web.config. Once IReportServerCredentials is implemented, you need to configure ReportViewer to use it. This takes one line of code: &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;font-size:10pt;"&gt;reportViewer.ServerReport.ReportServerCredentials = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;MyReportServerCredentials&lt;/span&gt;(); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The advantage of using IReportServerCredentals if flexibility. You can retrieve the account credentials from any place, such as security service, configuration file, database, etc. In addition, the impersonation is scoped for ReportViewer only. Other network calls made by the applications are unaffected. &lt;/p&gt;
&lt;h2&gt;Process Identity &lt;/h2&gt;
&lt;p&gt;The issue with IReportServerCredentals is the application must deal with the credentials of the trusted account, including the password. For added level of security, I try my best to avoid handling passwords and use Windows authentication whenever I can. Therefore, my preferred approach is to change the process identify of the web application. One way to do this is to change the identity of the IIS application pool the web application is running under, as follows: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If you don&amp;#39;t have a domain account to use as a trusted account, create a new domain account. &lt;/li&gt;
&lt;li&gt;On the web server, add the account to the &lt;strong&gt;IIS_WPG&lt;/strong&gt; local Windows group to give it the necessary rights to be used as an application pool account. &lt;/li&gt;
&lt;li&gt;In the IIS Manager, expand the server name, right-click the Application Pools folder, and click New Application Pool. &lt;/li&gt;
&lt;li&gt;Give the new pool a name. In the pool Properties page, click the Identity tab, select the Configurable option, and enter the credentials of the trusted account. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.prologika.com/blog/121609_0031_RunningRepo1.png" alt="" /&gt; &lt;/li&gt;
&lt;li&gt;Open the web application properties and change its application pool to the pool you just created.&lt;br /&gt;&lt;img src="http://www.prologika.com/blog/121609_0031_RunningRepo2.png" alt="" /&gt; &lt;/li&gt;
&lt;li&gt;If present, remove &amp;lt;identity impersonate=&amp;quot;true&amp;quot;/&amp;gt; element from the application web.config file so the network calls are made under the process identify instead of the anonymous user account, such as IUSR_&amp;lt;MACHINE_NAME&amp;gt;. &lt;/li&gt;
&lt;li&gt;At this point, if you run the web application, you may get a permission error because the domain account doesn&amp;#39;t have the necessary rights to specific folders, such as the web application folder and the temp folder. Using Windows Explorer, grant the domain account (or IIS_WPG group) rights to these folders. The error message should include the path of the folder you need to grant access to. &lt;/li&gt;
&lt;li&gt;Finally, use the Report Manager to grant the necessary rights to the trusted account, such as Browser, to the required folders.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.prologika.com/blog/121609_0031_RunningRepo3.png" alt="" /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4079" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Reporting Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Reporting+Services/default.aspx" /></entry><entry><title>Infragistics Silverlight for Analysis Services</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/09/infragistics-silverlight-for-analysis-services.aspx" /><id>/CS/blogs/blog/archive/2009/12/09/infragistics-silverlight-for-analysis-services.aspx</id><published>2009-12-09T22:11:39Z</published><updated>2009-12-09T22:11:39Z</updated><content type="html">&lt;p&gt;Don Demsak &lt;a href="http://labs.infragistics.com/silverlightdv/ctp/"&gt;pointed out&lt;/a&gt; another Silverlight-based control from Infragistics, which is currently in a CTP phase. There are actually two controls: XamWebDataChart and XamWebPivotGrid. I played a bit with it and it looks great. I liked the Excel-like paradigm with the metadata pane on the right and the PivotChart and PivotTable synchronized. As I&amp;#39;ve been saying – give me a Silverlight-based Excel Pivot and I am happy. 
&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.prologika.com/blog/120909_2209_Infragistic1.png" alt="" /&gt;
	&lt;/p&gt;&lt;p&gt;See my &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/10/18/intelligencia-for-silverlight.aspx"&gt;previous blog&lt;/a&gt; about the Intelligencia for Silverlight which is another Siliverlight-based control for Analysis Services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4055" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Analysis Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Analysis+Services/default.aspx" /></entry><entry><title>Analysis Services Top 10 Wish List</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/07/analysis-services-top-10-wish-list.aspx" /><id>/CS/blogs/blog/archive/2009/12/07/analysis-services-top-10-wish-list.aspx</id><published>2009-12-07T18:27:00Z</published><updated>2009-12-07T18:27:00Z</updated><content type="html">&lt;p&gt;Analysis Services leads the OLAP server market and it should be your platform of choice for historical and trend reporting. In the spirit of the season, here is my Top 10 Wish List for Analysis Services. All items are related to regular cubes and none to PowerPivot which I am yet to try. &lt;/p&gt;
&lt;ol style="margin-left:38pt;"&gt;
&lt;li&gt;Improved client support &amp;ndash; No 1 on my list has nothing to do with the server itself but with how well the Microsoft-provided clients support Analysis Services. To its credit, Microsoft continues improving the Excel OLAP support but still there are major functionality gaps from one tool to another. This is especially evident in the area of Reporting Services (see my No 1 SSRS &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/12/07/reporting-services-top-10-wish-list.aspx"&gt;wish list&lt;/a&gt; item). I am not sure if that&amp;#39;s possible from a technical standpoint but I wish the SSAS team re-factors the query generation logic into a MDX Query Generator binary of some kind which all tools can share to produce the same results consistently. &lt;/li&gt;
&lt;li&gt;Focus on UDM (aka Corporate BI) &amp;ndash; Although I see some useful scenarios for self-serviced OLAP with PowerPivot (previously known as Gemini), for various reasons I believe the focus should stay on UDM which now Microsoft refers to as Corporate BI. First, the business problems that I solve with UDM exceed by far Gemini&amp;#39;s capabilities. Second, if not a single source for reporting and a single version of the truth, I believe UDM should handle 80-90% of the reporting needs. Finally, based on my experience, data acquisition is the most difficult thing. This is why we have a dimensional model which IT would put together. But once data is cleaned and transformed, building UDM on top of it shouldn&amp;#39;t take that long &lt;/li&gt;
&lt;li&gt;Silverlight OLAP Viewer control - A Silverlight-based control that ships with Visual Studio to let developers embed an Excel-like Analysis Services browser into their ASP.NET applications. &lt;/li&gt;
&lt;li&gt;Improved performance &amp;ndash; Version 2008 has brought significant performance enhancement and SSAS performs great when aggregating regular measures. Usually, it is the calculations that will get you in trouble. So, anything that can be done to improve the server performance further will be welcome. For instance, the calculation engine executes the query on a single thread. It will be nice if a more complicated query can be parsed and executed in parallel. &lt;/li&gt;
&lt;li&gt;MDX Query Analyzer &amp;ndash; Related to performance, it will be great if we finally get a graphical query analyzer (a-la the T-SQL query analyzer) with hints about how to improve the query execution. &lt;/li&gt;
&lt;li&gt;Memory-bound partitions &amp;ndash; Again related to performance, it will be great if you could configure a partition to be memory-bound for super-fast access, as I mentioned in this &lt;a href="http://prologika.com/CS/blogs/blog/archive/2008/10/06/memory-dimensional-model-mdm-on-the-horizon.aspx"&gt;blog&lt;/a&gt;. &lt;/li&gt;
&lt;li&gt;Detail reporting &amp;ndash; I wish Analysis Services improves the ability to report on detail level. For example, it will nice to support text measures that the server returns for the lowest grain. I also want detail queries, such as a query that returns accounts for given customer to perform faster and don&amp;#39;t give up with &amp;quot;The expression contains a function that cannot operate on a set with more than 4,294,967,296 tuples.&amp;quot; error. &lt;/li&gt;
&lt;li&gt;Resource governor &amp;ndash; Analysis Services should expand on letting the administrator manage resources, such as memory, connections, query timeouts, etc. &lt;/li&gt;
&lt;li&gt;Custom security &amp;ndash; Support custom authentication that is not Windows-based to facilitate Internet connectivity perhaps similar to custom security in Reporting Services. &lt;/li&gt;
&lt;li&gt;Modeling enhancements &amp;ndash; OK, this is a catch-all bucket for support issues that I logged and which were declared as&amp;nbsp;&amp;quot;by design&amp;quot; and &amp;quot;future enhancements&amp;quot; &lt;img src="http://prologika.com/CS/emoticons/emotion-2.gif" alt="Big Smile" /&gt;, such as aggregatable Many-to-Many relationships, fixing subselect issues, fixing exclusion filter with custom operator issue. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Happy holidays!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4047" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Analysis Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Analysis+Services/default.aspx" /></entry><entry><title>Reporting Services Top 10 Wish List</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/07/reporting-services-top-10-wish-list.aspx" /><id>/CS/blogs/blog/archive/2009/12/07/reporting-services-top-10-wish-list.aspx</id><published>2009-12-07T13:55:00Z</published><updated>2009-12-07T13:55:00Z</updated><content type="html">&lt;p&gt;Reporting Services has gone a long way for the past five years and it&amp;#39;s getting better. In the spirit of the season, here is my Reporting Services Top 10 Wish List revised from &lt;a href="http://prologika.com/CS/blogs/blog/archive/2005/12/02/703.aspx"&gt;three years&lt;/a&gt; ago. This list is based on my work, so your priorities may differ. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Improved Analysis Services integration &amp;ndash; Since its debut in SSRS 2005, the MDX query designer hasn&amp;#39;t changed. R2 continues the trend, so no hope until at least 2011, that&amp;#39;s six years! Yet, the MDX query designer has plenty of deficiencies and bugs to be addressed, such query schema limitations, poor support for parent-child hierarchies, parameter limitations, and so on. I use SSAS heavily in my real-life projects and have to battle these deficiencies on a daily basis. I think it&amp;#39;s time for Microsoft to poll customers and MVPs for feedback and improve the integration with SSAS. &lt;/li&gt;
&lt;li&gt;Eventing model &amp;ndash; Although SSRS 2008 introduced a Report Definition Customization Extension (RDCE) that lets you change the report definition when the report requested, this extensibility mechanism was added as an afterthought and it&amp;#39;s somewhat kludgy. What&amp;#39;s really needed is server-side events, such as OnReportRender, OnPrint, OnParameterLoad, etc., similar to the ASP.NET programming model. Imagine the flexibility you will have as a report author if the server raises events for various stages of report processing and passes the report definition to let you evaluate conditions and change collections and RDL on the fly. &lt;/li&gt;
&lt;li&gt;Supported RDL Object Model &amp;ndash; After promising an RDL object model at TechEd 2007, SSRS 2008 brought an unsupported version but R2 is on its way to &amp;quot;undo&amp;quot; it by making it publicly inaccessible. At the same time, there are many requirements that call for pre-processing report definitions. A supported RDL object model will definitely simplify this. &lt;/li&gt;
&lt;li&gt;Silverlight-based Report Viewer &amp;ndash; Silverlight established itself as a platform of choice for web-based development. A Sliverlight Report Viewer will be a welcome addition. &lt;/li&gt;
&lt;li&gt;More interactive reporting &amp;ndash; Currently, SSRS requires you to make design changes and preview them. It will be great if a future release blurs design and preview to support more interactive reporting similar to Excel PivotTable. &lt;/li&gt;
&lt;li&gt;Dataset enhancements, such as ability to navigate dataset rows and joining datasets at report level. &lt;/li&gt;
&lt;li&gt;More user-friendly ad-hoc reporting &amp;ndash; Report Builder 2.0/3.0 is one my favorite features that SSRS 2008/R2 brought in. However, some end-user oriented features from Report Builder 1.0 got &amp;quot;lost&amp;quot; along the way. This item is about these features, such as making it easier for the end user to filter report data. When connected to SSAS, for example, SSRS should be as user-friendly as Excel. &lt;/li&gt;
&lt;li&gt;ADO.NET dataset binding for server reports &amp;ndash; I keep on asking for this feature and I still think it could be very useful to be able to pass ADO.NET datasets to published reports without having to build a custom dataset extension. &lt;/li&gt;
&lt;li&gt;Report styling &amp;ndash; Ability to style and skin reports. &lt;/li&gt;
&lt;li&gt;Decoupling the Report Builder Designer and exposing it as a reusable .NET control which can be embedded in applications. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Happy holidays!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4046" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author></entry><entry><title>Microsoft Live Labs Pivot</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/02/microsoft-live-labs-pivot.aspx" /><id>/CS/blogs/blog/archive/2009/12/02/microsoft-live-labs-pivot.aspx</id><published>2009-12-02T20:39:45Z</published><updated>2009-12-02T20:39:45Z</updated><content type="html">&lt;p&gt;In case you&amp;#39;ve missed this, the Pivot era has begun. After Excel PivotTable and PivotChart, we&amp;#39;ll have PowerPivot in SQL Server 2008 R2. But Pivot evolves… A co-worker showed me today a glimpse of the Pivot future which I guess is the &lt;a href="http://www.getpivot.com/"&gt;Microsoft Live Labs Pivot&lt;/a&gt;. Since grids and charts are not cool anymore we now have pictures and animation. It&amp;#39;s hard for me to understand at this point how this would apply to Business Intelligence but the Silverlight app with all these pictures sure looks catchy. 
&lt;/p&gt;&lt;p&gt;Long live Pivot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4035" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="General" scheme="http://prologika.com/CS/blogs/blog/archive/tags/General/default.aspx" /></entry><entry><title>Expert Cube Development with Analysis Services 2008</title><link rel="alternate" type="text/html" href="/CS/blogs/blog/archive/2009/12/02/expert-cube-development-with-analysis-services-2008.aspx" /><id>/CS/blogs/blog/archive/2009/12/02/expert-cube-development-with-analysis-services-2008.aspx</id><published>2009-12-02T14:00:00Z</published><updated>2009-12-02T14:00:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://www.packtpub.com/expert-cube-development-with-microsoft-sql-server-2008-analysis-services/book" title="&amp;quot;Expert Cube Development with Microsoft SQL Server 2008 Analysis Services&amp;quot;"&gt;&lt;img src="http://www.prologika.com/blog/120209_1358_ExpertCubeD1.png" align="left" border="0" alt="" /&gt;&lt;/a&gt;Now that I&amp;#39;ve got my copy and read it, I can say a few things about the &lt;a href="http://www.packtpub.com/expert-cube-development-with-microsoft-sql-server-2008-analysis-services/book"&gt;book&lt;/a&gt; Expert Cube Development with Microsoft SQL Server 2008 Analysis Services by Chris Webb, Alberto Ferrari, and Marco Russo. As mentioned in another &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/11/10/where-is-the-ssas-2008-book.aspx"&gt;post&lt;/a&gt;, the authors (all MVPs and prominent SSAS experts) don&amp;#39;t disappoint and you won&amp;#39;t go wrong picking up this book. The book is somewhat small in size (330 pages) but big in wisdom and best practices. It also includes plenty of references to external resources and blogs that the authors and other SSAS experts have written when you need further understanding of the topics discussed. Make no mistake though, this is not a step-by-step book and it doesn&amp;#39;t target novice users. As its title suggests, the book is geared toward more advanced users who have a few years of SSAS experience under their belt and are thirsty for more insightful knowledge. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;Chapter 1 Designing the Data Warehouse for Analysis Services &lt;/h3&gt;
&lt;p&gt;The first and most important step for implementing a successful Analysis Services solution has nothing to do with Analysis Services at all. Its success depends on a solid schema design on which you&amp;#39;ll build the cube so the book is right on target to hit this topic first. Chapter 1 discusses common schema modeling challenges and provides plenty of tips to tackle them. One grudge I have here is about the following sentence &amp;quot;Beware of the temptation to avoid building a data warehouse and data marts&amp;quot; which may leave the reader with the impression that a data mart is a must. In fact, call me lazy but the first thing that I&amp;#39;d explore when starting a new SSAS project is if it&amp;#39;s possible to avoid a separate database. While a classic OLAP solution in many cases will require a new database (whatever you call it a data warehouse or a data mart) and the whole ETL enchilada that this entails, you may need to build a cube on top of simpler schemas, such on top of a DSS (decision support system) schema. In this case, I would explore the option to &amp;quot;dimensionalize&amp;quot; the source schema with a layer of SQL views. As with everything else, the keep-it-simple principle works for me. &lt;/p&gt;
&lt;h3&gt;Chapter 2 Basic Dimensions and Cubes &lt;/h3&gt;
&lt;p&gt;This chapter discusses the groundwork required to set up the raw dimensional model. This includes working with data sources, data source views, cubes, and dimensions. My favorite part of this chapter was the attribute design and setting up attribute relations. This often overlooked aspect of SSAS development is crucial for achieving good performance and the book explains why. &lt;/p&gt;
&lt;h3&gt;Chapter 3 Designing More Complex Dimensions &lt;/h3&gt;
&lt;p&gt;Next, the book explains how to handle more complex dimension schemas and hierarchies. This includes parent-child, ragged, slowly-changing, referenced, fact, and junk dimensions. The authors&amp;#39; real-life experience shows through. About junk dimensions, my preference is to avoid them wherever possible for performance reasons. Instead, I&amp;#39;d explore the option to keep the low-cardinality attributes in the fact table and use report or URL actions to view them. In my opinion, SSAS is not there yet as far as reporting on details. &lt;/p&gt;
&lt;h3&gt;Chapter 4 Measures and Measure Groups &lt;/h3&gt;
&lt;p&gt;The whole purpose of building a cube is to aggregate measures. Analysis Services supports various aggregation functions and the book provides essential coverage. You will learn how to implement semi-additive measures if you cannot afford the Enterprise Edition of SQL Server. Custom aggregation by using unary operators and custom member formulas are presented too. Then the book discusses more complex relationship types, including different grains, linked dimensions and measure groups, role-playing dimensions and fact relationships. &lt;/p&gt;
&lt;h3&gt;Chapter 5 Adding Transactional Data &lt;/h3&gt;
&lt;p&gt;Although most users would be interested in aggregated data, sometimes users may need to see the level of details behind a cell. The book explains how you can do this by using drillthrough and actions. Drillthrough options are covered in great details. Excellent coverage is provided for many-to-many relationships as well. &lt;/p&gt;
&lt;h3&gt;Chapter 6 Adding Calculations to the Cube &lt;/h3&gt;
&lt;p&gt;Cubes usually include business calculations in the form of MDX expressions. Chapter 6 gives lays the foundation for using MDX. It provides practical examples for calculated members, including YTD, ratios, growths, same period last previous year, moving averages, and ranks. Handling relative dates is a common business requirement. For example, I personally had to implement two custom types of relative dates as explained in this &lt;a href="http://prologika.com/CS/blogs/blog/archive/2009/08/19/yet-another-relative-dates-implementation.aspx"&gt;blog&lt;/a&gt;. The book provides a great example for implementing a custom calculation dimension for implementing more flexible relative dates that the BI Wizard provides. Finally, the chapter discusses static and dynamic named sets. &lt;/p&gt;
&lt;h3&gt;Chapter 7 Adding Currency Conversion &lt;/h3&gt;
&lt;p&gt;I consider myself lucky for never having to support international users because of the complexities surrounding the issue. If you have to, SSAS gives you the necessary features to tackle various localization requirements. This chapter walks you through the details of implementing currency conversion using the BI wizard, measure expressions, and writeback. My advice is to avoid writeback due to its limitations. Instead, consider an URL action that navigates the user to a custom web page for handing data changes and proactive caching for automatically updating the cube. &lt;/p&gt;
&lt;h3&gt;Chapter 8 Query Performance Tuning &lt;/h3&gt;
&lt;p&gt;SSAS bends backwards to provide great performance. You can help by following best practices for cube design. This chapter teaches you how to implement partitions and aggregations. I like the sections for monitoring partition and aggregation usage and building aggregations manually. The chapter presents useful tips to diagnose and resolve performance issues, such as by using the MDX Studio, named sets, calculated members, and caching. &lt;/p&gt;
&lt;h3&gt;Chapter 9 Securing the Cube &lt;/h3&gt;
&lt;p&gt;Chances are you will need to provide restricted access to the cube for groups of users. This chapter shows you how to implement and test roles. It covers cell and dimension security. It presents solutions for implementing custom dimension data security which are similar to the ones I discussed in this &lt;a href="http://prologika.com/CS/blogs/blog/archive/2007/09/21/protect-udm-with-dimension-data-security-reloaded.aspx"&gt;article&lt;/a&gt;. &lt;/p&gt;
&lt;h3&gt;Chapter 9 Productionization &lt;/h3&gt;
&lt;p&gt;Your SSAS solution is ready and it&amp;#39;s time to see daylight. This chapter covers the tasks associated with deploying and managing your SSAS solution in production environment. These include managing and generating partitions and processing. I liked the coverage of different processing options. &lt;/p&gt;
&lt;h3&gt;Chapter 10 Monitoring Cube Performance and Usage &lt;/h3&gt;
&lt;p&gt;As an administrator, your job doesn&amp;#39;t end once the solution is deployed. You need to monitor it on a daily basis to ensure that it performs optimally. The last chapter explains different server monitoring techniques, such as performance counters, tracing, Resource Monitor, SQL Profiler, and using Dynamic Management Views (DMVs). I personally liked the memory management tips. &lt;/p&gt;
&lt;p&gt;In summary, I highly recommend this book to anyone who has several years of experience in SSAS development and need a compass check to make sure that he follows the right track. Kudos to the authors for taking time to write it! &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://prologika.com/CS/aggbug.aspx?PostID=4032" width="1" height="1"&gt;</content><author><name>tlachev</name><uri>http://prologika.com/CS/members/tlachev/default.aspx</uri></author><category term="Analysis Services" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Analysis+Services/default.aspx" /><category term="Business Intelligence" scheme="http://prologika.com/CS/blogs/blog/archive/tags/Business+Intelligence/default.aspx" /></entry></feed>