<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MSFTASProdSamples Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=Home</link><description>MSFTASProdSamples Wiki Rss Description</description><item><title>New Comment on "Katmai!Data Mining Web Controls Library"</title><link>http://msftasprodsamples.codeplex.com/wikipage?title=Katmai!Data Mining Web Controls Library&amp;ANCHOR#C20316</link><description>I cannot see folder &amp;#34; C&amp;#58;&amp;#92;Program Files&amp;#92;Microsoft SQL Server&amp;#92;100&amp;#92;Samples&amp;#92;Analysis Services&amp;#92;DataMining&amp;#92;Data Mining Web Controls&amp;#34; after installation.&amp;#10;I am using 32 bit msi file.</description><author>thesuraj</author><pubDate>Wed, 13 Jul 2011 18:39:06 GMT</pubDate><guid isPermaLink="false">New Comment on "Katmai!Data Mining Web Controls Library" 20110713063906P</guid></item><item><title>New Comment on "SS2005!Readme For Command-line Utility Sample"</title><link>http://msftasprodsamples.codeplex.com/wikipage?title=SS2005!Readme For Command-line Utility Sample&amp;ANCHOR#C16995</link><description>Am I the only one who have problems with deploying roles &amp;#63;</description><author>mavericklbj</author><pubDate>Tue, 14 Sep 2010 14:39:55 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2005!Readme For Command-line Utility Sample" 20100914023955P</guid></item><item><title>Updated Wiki: Home</title><link>http://msftasprodsamples.codeplex.com/wikipage?version=35</link><description>&lt;div class="wikidoc"&gt;&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Analysis Services Product Samples&lt;br /&gt;&lt;br /&gt;SQL Server Analysis Services provides, a unified and integrated view of all your business data as the foundation for all of your traditional reporting, online analytical processing (OLAP) analysis, Key Performance Indicator (KPI) scorecards, and data mining.&lt;br /&gt;&lt;br /&gt;This project contains Analysis Services samples released with Microsoft SQL Server product. These samples are in the following three categories: Administrator, Data Mining, and Programmability. If you are interested in contributing Analysis Services samples, please let us know by posting in the developers' forum.&lt;br /&gt;&lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTASProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt;&lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.
&lt;h3&gt;&lt;b&gt;Administrator&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Activity Viewer &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Activity%20Viewer&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Aggregation Manager Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20for%20Aggregation%20Manager%20Sample&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Analysis Services Upgrade Verification Tool Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20for%20Analysis%20Services%20Upgrade%20Verification%20Tool%20Sample&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; ASTrace Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20for%20ASTrace%20Utility%20Sample&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Command-line Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20For%20Command-line%20Utility%20Sample&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=18652"&gt;SQL Server 2008 SR1&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;Data Mining&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Data Mining Web Controls Library &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Data%20Mining%20Web%20Controls%20Library&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; SQL Server Plug-In Algorithms &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20for%20SQL%20Server%20Plug-In%20Algorithms&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;Extensibility&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; Analysis Services Personalization Extensions Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;Programmability&lt;/b&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &amp;amp; SQL Server 2008R2 &lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; AMOBrowser &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21AMOBrowser&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21AMOBrowser&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; BackupAndRestore &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21BackupAndRestore&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21BackupAndRestore&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; DisplayObjectsName &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21DisplayObjectsName&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21DisplayObjectsName&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; AS Simple Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme%20for%20AS%20Simple%20Sample&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme%20for%20AS%20Simple%20Sample&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; AMOAdventureWorks &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2005%21Readme_AMOAdventureWorks&amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_AMOAdventureWorks&amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>bonniefe</author><pubDate>Tue, 08 Dec 2009 23:47:16 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20091208114716P</guid></item><item><title>New Comment on "SS2005!Readme_AMOAdventureWorks"</title><link>http://msftasprodsamples.codeplex.com/wikipage?title=SS2005!Readme_AMOAdventureWorks&amp;ANCHOR#C14330</link><description>where is code&amp;#63;</description><author>Roman_K</author><pubDate>Tue, 01 Dec 2009 06:06:52 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2005!Readme_AMOAdventureWorks" 20091201060652A</guid></item><item><title>New Comment on "SS2005!Activity Viewer"</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005!Activity Viewer&amp;ANCHOR#C13674</link><description>Why program want to load a XML from &amp;#34;C&amp;#58;&amp;#92;documents and settings&amp;#92;Microsoft&amp;#92;Microsoft SQL Server&amp;#92;90&amp;#92;Tools&amp;#92;Shell&amp;#92;RegSrvr.xml&amp;#34;, But I   can not find this file in my machine.&amp;#13;&amp;#10;&amp;#13;&amp;#10;How can I run this program sucessfully&amp;#63;&amp;#13;&amp;#10;</description><author>brucenan</author><pubDate>Fri, 28 Aug 2009 08:35:38 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2005!Activity Viewer" 20090828083538A</guid></item><item><title>New Comment on "SS2008!Readme_AMOAdventureWorks"</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme_AMOAdventureWorks&amp;ANCHOR#C13584</link><description>I&amp;#39;m working with Visual Studio 2005 or 2008 and the AmoAdventureWorks sample and Sql Server 2008 Standard edition. I&amp;#39;ve made two changes to the AmoAdventureworks project, both in Program.cs. First I put an immediate return in the CreateCurrencyRatesMeasureGroup method to avoid the issue of semiadditive measures not being available in the Standard Edition. Second in the CreateRolesAndPermissions method for the reader role I used this statement&amp;#58;&amp;#10;&amp;#10;role.Members.Add&amp;#40;new RoleMember&amp;#40;&amp;#34;EIT&amp;#92;test1&amp;#34;&amp;#41;&amp;#41;&amp;#59; &amp;#47;&amp;#47; e.g. redmond&amp;#92;johndoe&amp;#10;&amp;#10;instead of&amp;#58;&amp;#10;&amp;#10;role.Members.Add&amp;#40;new RoleMember&amp;#40;&amp;#34;&amp;#34;&amp;#41;&amp;#41;&amp;#59; &amp;#47;&amp;#47; e.g. redmond&amp;#92;johndoe&amp;#10;&amp;#10;and then&amp;#10;&amp;#10;role.Update&amp;#40;&amp;#41;&amp;#59;&amp;#10;&amp;#10;gets this exception&amp;#58;&amp;#10;&amp;#10;&amp;#123;&amp;#34;The following system error occurred&amp;#58;  No mapping between account names and security IDs was done. .&amp;#92;n&amp;#34;&amp;#125;&amp;#10;&amp;#10;&amp;#10;If I use this statement&amp;#58;&amp;#10;&amp;#10;role.Members.Add&amp;#40;new RoleMember&amp;#40;&amp;#34;EIT&amp;#92;test1&amp;#34;, &amp;#34;S-1-5-21-107385321-1855232891-3196306309-513&amp;#34;&amp;#41;&amp;#41;&amp;#59; &amp;#47;&amp;#47; e.g. redmond&amp;#92;johndoe&amp;#10;&amp;#10;it runs to completion and creates the cube. That is a valid user&amp;#92;sid combination in our domain and as a Server Admin in Analysis Services I can browse the cube. &amp;#10;&amp;#10;However if I go into SSMS 2008 and open the AmoAdventureWorks AS database, then open roles and right click on Readers -&amp;#62; Properties -&amp;#62; Membership it shows S-1-5-21-107385321-1855232891-3196306309-513 as the user for this role. &amp;#10;&amp;#10;If I add a user and immediately remove that user and click ok I once again get a dialog box with&amp;#58;&amp;#10;&amp;#10;The following system error occurred&amp;#58;  No mapping between account names and security IDs was done.&amp;#10;&amp;#10;Will someone please explain what I&amp;#39;m doing wrong or missing here&amp;#63;&amp;#10;&amp;#10;Thanks&amp;#10;&amp;#10;</description><author>jcolaizzi</author><pubDate>Fri, 14 Aug 2009 00:33:48 GMT</pubDate><guid isPermaLink="false">New Comment on "SS2008!Readme_AMOAdventureWorks" 20090814123348A</guid></item><item><title>Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme for Analysis Services Personalization Extensions Sample&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Analysis Services Personalization Extensions Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;The Analysis Services Personalization Extensions sample is a C# program that illustrates how to create user-based personalizations. These personalizations are not permanent objects in the cube, but are objects that the client application applies dynamically during the user's session.&lt;br /&gt;The Analysis Services Personalization Extensions sample dynamically creates a different object for three different users. For each user connection, the sample enables only the object that is associated with that user. Each of these personalization objects is only visible during the user's session.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;An independent software vendor (ISV) creates an interface that enables a user to design business metrics for his or her company, and then share those metrics with that user's peers. The metrics are dynamic and adjustable to the person who uses them. For example, the ISV designs a client interface that enables a company's business analyst to design a Sales Monthly Goal Tracking indicator. This indicator calculates and tracks the monthly sales goal for each salesperson. The business analyst can then share this indicator with the company's sales team. Now, any member on the team can easily know how he or she is doing towards the monthly goal, as the indicator is automatically  tailored to the goals of each salesperson. &lt;br /&gt;Without the personalization extensions, the indicator would have to be passed to the company's Analysis Services team. This Analysis Services team would have to incorporate the indicator directly into the cube design and then redeploy the cube to the end users. Because the indicator would be an object in the cube, the indicator would not be personalized to each user.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample uses the following features of SQL Server 2008 Analysis Services (SSAS).&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  AdventureWorks &lt;/td&gt;&lt;td&gt; ADOMD.NET Server, MDX &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on Itanium-based computers. The 64-bit development environment is supported on x64-based operating systems. SQL Server 2005 samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based computer.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample databases: the AdventureWorks data warehouse and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services samples and SQL Server Database Engine samples.   You can download these samples from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  You also need .NET Framework SDK 3.5 or Microsoft Visual Studio 2008 installed. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample is composed of one binary file, ASPE.dll.&lt;br /&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2008 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;, select &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2008 Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the Analysis Services Personalization Extensions Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Rename SampleKey.snk to ASPE.snk and move the file to the same location where ASPE.sln is.&lt;/li&gt;&lt;li&gt;Compile ASPE.dll by using: &lt;/li&gt;&lt;li&gt; Visual Studio 2008 and the ASPE.sln file.  — or —&lt;/li&gt;&lt;li&gt; Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;3.5. Change directory to the location where the solution file ASPE.sln is located. Run a command similar to the following at a command prompt:   &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug  ASPE.sln&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h3&gt;
Deploying the Sample
&lt;/h3&gt;To deploy the Analysis Services Personalization Extensions sample, you must add the assembly that you built in the previous procedure to a running instance of Analysis Services.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add ASPE.dll assembly to a running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the instance of Analysis Services.&lt;i&gt;Localhost&lt;/i&gt; is assumed as the default instance for this sample. Replace &lt;i&gt;localhost&lt;/i&gt; in with the name of the instance that you have selected.&lt;/li&gt;&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify that the ASPE assembly is not listed.If the ASPE assembly is listed, remove this assembly by right-clicking the assembly and selecting &lt;b&gt;Delete.&lt;/b&gt; Continue following the steps on the screen.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Assemblies&lt;/b&gt; and select &lt;b&gt;New Assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Register Server Assembly&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Type&lt;/b&gt;, select &lt;b&gt;.NET Assembly&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Filename&lt;/b&gt;, click the browse button &lt;b&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=%u2026&amp;amp;referringTitle=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample"&gt;…&lt;/a&gt;&lt;/b&gt; and find the ASPE.dll file in your project folder under &lt;b&gt;bin/debug&lt;/b&gt; folders.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Permissions&lt;/b&gt;, select &lt;b&gt;Unrestricted&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Impersonation&lt;/b&gt;, select &lt;b&gt;Use the Service Account&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify the ASPE assembly is listed.&lt;/li&gt;&lt;li&gt;To enable the correct management of all events, open SQL Server Configuration Manager, select &lt;b&gt;SQL Server Services&lt;/b&gt;, and then select the &lt;b&gt;SQL Server Analysis Services&lt;/b&gt; row. Click the restart button to restart the service &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Preparing the Environment to Test the Sample
&lt;/h3&gt;On the same server where you are running Analysis Services and have deployed ASPE.dll, use the following procedures to set up the environment to test the sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add three users to your current system
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Users&lt;/b&gt; folder and select &lt;b&gt;New User&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New User&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;User name&lt;/b&gt;, type &lt;b&gt;user1&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Password&lt;/b&gt;, type a strong password that meets your company standards.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Confirm password&lt;/b&gt;, re-type your selected password.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;User must change password at next logon&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Password never expires&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt;Repeat step 4 for &lt;b&gt;user2&lt;/b&gt; and &lt;b&gt;user3&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify Adventure Works DW database is deployed and contains Adventure Works cube
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node and verify that the &lt;b&gt;Adventure Works DW&lt;/b&gt; database exists.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; node, expand the &lt;b&gt;Cubes&lt;/b&gt; node, and verify that the &lt;b&gt;Adventure Works&lt;/b&gt; cube exists.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Adventure Works&lt;/b&gt; cube and select &lt;b&gt;Properties&lt;/b&gt;. Verify that the cube &lt;b&gt;State&lt;/b&gt; is &lt;b&gt;Processed&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;If any one of the previous steps cannot be completed, see the Books Online topic, &lt;a href="http://go.microsoft.com/fwlink/?LinkId=83253" class="externalLink"&gt;Running Setup to Install AdventureWorks Sample Databases and Samples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, in the MSDN Library.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To add a role for the new users and give them access to the cube and dimensions
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Roles&lt;/b&gt;, and then select &lt;b&gt;New role&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Create Role&lt;/b&gt; dialog box, click the &lt;b&gt;General&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Role name&lt;/b&gt;, type &lt;b&gt;ASPE Test Users&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Read definition&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;Full control (Administrator)&lt;/b&gt; and &lt;b&gt;Process database&lt;/b&gt; check boxes.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Membership&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Select Users or Groups&lt;/b&gt; window, for &lt;b&gt;Enter the object names to select&lt;/b&gt;, type &lt;b&gt;user1; user2; user3&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Check Names&lt;/b&gt;.   The values should now appear underlined, with the server or domain name in front of each name.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the &lt;b&gt;Data Sources&lt;/b&gt; page. In the &lt;b&gt;Access&lt;/b&gt; column for the &lt;b&gt;Adventure Works DW&lt;/b&gt; row, select &lt;b&gt;Read&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Cubes&lt;/b&gt; page, and select the following options for the &lt;b&gt;Adventure Works&lt;/b&gt; row:&lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Access&lt;/b&gt; column, select &lt;b&gt;Read&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Local Cube/Drillthrough Access&lt;/b&gt; column, select &lt;b&gt;Drillthrough and Local Cube&lt;/b&gt;. Click &lt;b&gt;OK&lt;/b&gt; to accept the message.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Process&lt;/b&gt; column, select the check box.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Dimensions&lt;/b&gt; page. For each of the rows in &lt;b&gt;Dimensions&lt;/b&gt;, select the &lt;b&gt;Process&lt;/b&gt; column check box.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;, and then wait until the command is processed and the new role is created.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;Testing the sample demonstrates that new personalization objects are created in different user contexts and that those objects are associated with the user profile.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To verify your context
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select the  Adventure Works DW  database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the  Adventure Works  cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder under this node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user1
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user1&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user1 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, and then expand the &lt;b&gt;Internet Sales&lt;/b&gt; node to see the &lt;b&gt;ISV1&lt;/b&gt; folder.Unlike your user context, user1 has an *ISV1 *folder under the &lt;b&gt;Internet Sales&lt;/b&gt; node.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;ISV1&lt;/b&gt; folder, expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder.Notice that the &lt;b&gt;Operations&lt;/b&gt; folder contains the &lt;b&gt;Average Item Freight Cost&lt;/b&gt; member.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.Unlike your user context, user1 does have access to the &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder to see the &lt;b&gt;Touring Bikes&lt;/b&gt; set.Unlike your user context, user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user2
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user2&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user2 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select the &lt;b&gt;Adventure Works DW&lt;/b&gt; database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is also visible to this user. &lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the *Rate Difference *member.Notice that for user2 only, the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group has an &lt;b&gt;ISV1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.Notice that user2, just like user1, has access to the &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the &lt;b&gt;Mountain Bikes&lt;/b&gt; set.While user2 has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set, user2 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operations&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user3
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user3&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user3 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice that the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV1&lt;/b&gt; folder in this group.Only user2 has an &lt;b&gt;ISV1&lt;/b&gt; folder in the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;Discount per Order&lt;/b&gt; member.Notice that for user3 only, the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group has an &lt;b&gt;ISV1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder to see &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.user3, just like user1 and user2, has access to the &lt;b&gt;ISV1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.While user3 has access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set, user3 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operation&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set. User3 also has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set in the &lt;b&gt;Finance&lt;/b&gt; folder. It is user2 who has no access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Troubleshooting the Sample
&lt;/h3&gt;Use the following set of procedures to troubleshoot the Analysis Services Personalization Extensions sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To define debug breakpoints in the code
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio 2008, open ASPE.sln.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;ASClientExtensions.cs&lt;/i&gt; source file, and then set a breakpoint on the opening brace of the &lt;i&gt;ASClientExtensions&lt;/i&gt; constructor.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;SessionMgr.cs&lt;/i&gt; source file, and then set the following breakpoints:&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;SessionMgr&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;CubeOpened&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;AuthoringAndManagement.cs&lt;/i&gt; source file, and then set the following breakpoints.&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;AuthoringAndManagement&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineMembers&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineSets&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineKPIs&lt;/i&gt; method.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To attach to the running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In the menu bar, select &lt;b&gt;Debug&lt;/b&gt;, and then select &lt;b&gt;Attach to process&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Available Processes&lt;/b&gt; pane, browse to find &lt;b&gt;msmdsrv.exe&lt;/b&gt;, and then select it.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Attach&lt;/b&gt;, and then wait until the debugger attaches to the running process.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To run through the breakpoints
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Repeat all the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.Notice that SQL Server Management Studio does not immediately appear. Instead, Visual Studio opens.&lt;/li&gt;&lt;li&gt;To see the sequence of events, press F11 repeatedly.If there are no more events, check SQL Server Management Studio to continue with the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;Use the following procedure to remove the Analysis Services Personalization Extensions Sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the roles and assembly from the current Analysis Services instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open SQL Server Management Studio. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Roles&lt;/b&gt;, right-click &lt;b&gt;ASPE Test Users&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At server level, expand &lt;b&gt;Assemblies&lt;/b&gt;, right-click &lt;b&gt;ASPE&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Close SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Restart the service&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the user created for this sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Users&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Remove user1, user2, user3 by right-clicking each user, selecting &lt;b&gt;Delete&lt;/b&gt;, and then clicking &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the ASPE sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;From your solution folder, in the ASPE folder, remove the &lt;b&gt;bin&lt;/b&gt; and &lt;b&gt;obj&lt;/b&gt; folders. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>cmslydia</author><pubDate>Thu, 09 Apr 2009 02:39:02 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample 20090409023902A</guid></item><item><title>Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme for Analysis Services Personalization Extensions Sample&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Analysis Services Personalization Extensions Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;The Analysis Services Personalization Extensions sample is a C# program that illustrates how to create user-based personalizations. These personalizations are not permanent objects in the cube, but are objects that the client application applies dynamically during the user's session.&lt;br /&gt;The Analysis Services Personalization Extensions sample dynamically creates a different object for three different users. For each user connection, the sample enables only the object that is associated with that user. Each of these personalization objects is only visible during the user's session.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;An independent software vendor (ISV) creates an interface that enables a user to design business metrics for his or her company, and then share those metrics with that user's peers. The metrics are dynamic and adjustable to the person who uses them. For example, the ISV designs a client interface that enables a company's business analyst to design a Sales Monthly Goal Tracking indicator. This indicator calculates and tracks the monthly sales goal for each salesperson. The business analyst can then share this indicator with the company's sales team. Now, any member on the team can easily know how he or she is doing towards the monthly goal, as the indicator is automatically  tailored to the goals of each salesperson. &lt;br /&gt;Without the personalization extensions, the indicator would have to be passed to the company's Analysis Services team. This Analysis Services team would have to incorporate the indicator directly into the cube design and then redeploy the cube to the end users. Because the indicator would be an object in the cube, the indicator would not be personalized to each user.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample uses the following features of SQL Server 2008 Analysis Services (SSAS).&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  AdventureWorks &lt;/td&gt;&lt;td&gt; ADOMD.NET Server, MDX &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on Itanium-based computers. The 64-bit development environment is supported on x64-based operating systems. SQL Server 2005 samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based computer.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample databases: the AdventureWorks data warehouse and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services samples and SQL Server Database Engine samples.   You can download these samples from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  You also need .NET Framework SDK 3.5 or Microsoft Visual Studio 2008 installed. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample is composed of one binary file, ASPE.dll.&lt;br /&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2008 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft Visual Studio 2008&lt;/b&gt;, select &lt;b&gt;Visual Studio Tools&lt;/b&gt;, and then click &lt;b&gt;Visual Studio 2008 Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the Analysis Services Personalization Extensions Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Rename SampleKey.snk to ASPE.snk and move the file to the same location where ASPE.sln is.&lt;/li&gt;&lt;li&gt;Compile ASPE.dll by using: &lt;/li&gt;&lt;li&gt; Visual Studio 2008 and the ASPE.sln file.  — or —&lt;/li&gt;&lt;li&gt; Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;3.5. Change directory to the location where the solution file ASPE.sln is located. Run a command similar to the following at a command prompt:   &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug ASPE.sln&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h3&gt;
Deploying the Sample
&lt;/h3&gt;To deploy the Analysis Services Personalization Extensions sample, you must add the assembly that you built in the previous procedure to a running instance of Analysis Services.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add ASPE.dll assembly to a running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the instance of Analysis Services.&lt;i&gt;Localhost&lt;/i&gt; is assumed as the default instance for this sample. Replace &lt;i&gt;localhost&lt;/i&gt; in with the name of the instance that you have selected.&lt;/li&gt;&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify that the ASPE assembly is not listed.If the ASPE assembly is listed, remove this assembly by right-clicking the assembly and selecting &lt;b&gt;Delete.&lt;/b&gt; Continue following the steps on the screen.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Assemblies&lt;/b&gt; and select &lt;b&gt;New Assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Register Server Assembly&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Type&lt;/b&gt;, select &lt;b&gt;.NET Assembly&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Filename&lt;/b&gt;, click the browse button &lt;b&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=%u2026&amp;amp;referringTitle=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample"&gt;…&lt;/a&gt;&lt;/b&gt; and find the ASPE.dll file in your project folder under &lt;b&gt;bin/debug&lt;/b&gt; folders.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Permissions&lt;/b&gt;, select &lt;b&gt;Unrestricted&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Impersonation&lt;/b&gt;, select &lt;b&gt;Use the Service Account&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify the ASPE assembly is listed.&lt;/li&gt;&lt;li&gt;To enable the correct management of all events, open SQL Server Configuration Manager, select &lt;b&gt;SQL Server Services&lt;/b&gt;, and then select the &lt;b&gt;SQL Server Analysis Services&lt;/b&gt; row. Click the restart button to restart the service &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Preparing the Environment to Test the Sample
&lt;/h3&gt;On the same server where you are running Analysis Services and have deployed ASPE.dll, use the following procedures to set up the environment to test the sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add three users to your current system
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Users&lt;/b&gt; folder and select &lt;b&gt;New User&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New User&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;User name&lt;/b&gt;, type &lt;b&gt;user1&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Password&lt;/b&gt;, type a strong password that meets your company standards.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Confirm password&lt;/b&gt;, re-type your selected password.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;User must change password at next logon&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Password never expires&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt;Repeat step 4 for &lt;b&gt;user2&lt;/b&gt; and &lt;b&gt;user3&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify Adventure Works DW database is deployed and contains Adventure Works cube
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node and verify that the &lt;b&gt;Adventure Works DW&lt;/b&gt; database exists.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; node, expand the &lt;b&gt;Cubes&lt;/b&gt; node, and verify that the &lt;b&gt;Adventure Works&lt;/b&gt; cube exists.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Adventure Works&lt;/b&gt; cube and select &lt;b&gt;Properties&lt;/b&gt;. Verify that the cube &lt;b&gt;State&lt;/b&gt; is &lt;b&gt;Processed&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;If any one of the previous steps cannot be completed, see the Books Online topic, &lt;a href="http://go.microsoft.com/fwlink/?LinkId=83253" class="externalLink"&gt;Running Setup to Install AdventureWorks Sample Databases and Samples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, in the MSDN Library.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To add a role for the new users and give them access to the cube and dimensions
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Roles&lt;/b&gt;, and then select &lt;b&gt;New role&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Create Role&lt;/b&gt; dialog box, click the &lt;b&gt;General&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Role name&lt;/b&gt;, type &lt;b&gt;ASPE Test Users&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Read definition&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;Full control (Administrator)&lt;/b&gt; and &lt;b&gt;Process database&lt;/b&gt; check boxes.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Membership&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Select Users or Groups&lt;/b&gt; window, for &lt;b&gt;Enter the object names to select&lt;/b&gt;, type &lt;b&gt;user1; user2; user3&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Check Names&lt;/b&gt;.   The values should now appear underlined, with the server or domain name in front of each name.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the &lt;b&gt;Data Sources&lt;/b&gt; page. In the &lt;b&gt;Access&lt;/b&gt; column for the &lt;b&gt;Adventure Works DW&lt;/b&gt; row, select &lt;b&gt;Read&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Cubes&lt;/b&gt; page, and select the following options for the &lt;b&gt;Adventure Works&lt;/b&gt; row:&lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Access&lt;/b&gt; column, select &lt;b&gt;Read&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Local Cube/Drillthrough Access&lt;/b&gt; column, select &lt;b&gt;Drillthrough and Local Cube&lt;/b&gt;. Click &lt;b&gt;OK&lt;/b&gt; to accept the message.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Process&lt;/b&gt; column, select the check box.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Dimensions&lt;/b&gt; page. For each of the rows in &lt;b&gt;Dimensions&lt;/b&gt;, select the &lt;b&gt;Process&lt;/b&gt; column check box.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;, and then wait until the command is processed and the new role is created.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;Testing the sample demonstrates that new personalization objects are created in different user contexts and that those objects are associated with the user profile.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To verify your context
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select the  Adventure Works DW  database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the  Adventure Works  cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder under this node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user1
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user1&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user1 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, and then expand the &lt;b&gt;Internet Sales&lt;/b&gt; node to see the &lt;b&gt;ISV_1&lt;/b&gt; folder.Unlike your user context, user1 has an *ISV_1 *folder under the &lt;b&gt;Internet Sales&lt;/b&gt; node.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder.Notice that the &lt;b&gt;Operations&lt;/b&gt; folder contains the &lt;b&gt;Average Item Freight Cost&lt;/b&gt; member.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Unlike your user context, user1 does have access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder to see the &lt;b&gt;Touring Bikes&lt;/b&gt; set.Unlike your user context, user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user2
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user2&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user2 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select the &lt;b&gt;Adventure Works DW&lt;/b&gt; database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is also visible to this user. &lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the *Rate Difference *member.Notice that for user2 only, the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Notice that user2, just like user1, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the &lt;b&gt;Mountain Bikes&lt;/b&gt; set.While user2 has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set, user2 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operations&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user3
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user3&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user3 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice that the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user2 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;Discount per Order&lt;/b&gt; member.Notice that for user3 only, the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder to see &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.user3, just like user1 and user2, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.While user3 has access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set, user3 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operation&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set. User3 also has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set in the &lt;b&gt;Finance&lt;/b&gt; folder. It is user2 who has no access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Troubleshooting the Sample
&lt;/h3&gt;Use the following set of procedures to troubleshoot the Analysis Services Personalization Extensions sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To define debug breakpoints in the code
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio 2008, open ASPE.sln.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;ASClientExtensions.cs&lt;/i&gt; source file, and then set a breakpoint on the opening brace of the &lt;i&gt;ASClientExtensions&lt;/i&gt; constructor.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;SessionMgr.cs&lt;/i&gt; source file, and then set the following breakpoints:&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;SessionMgr&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;CubeOpened&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;AuthoringAndManagement.cs&lt;/i&gt; source file, and then set the following breakpoints.&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;AuthoringAndManagement&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineMembers&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineSets&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineKPIs&lt;/i&gt; method.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To attach to the running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In the menu bar, select &lt;b&gt;Debug&lt;/b&gt;, and then select &lt;b&gt;Attach to process&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Available Processes&lt;/b&gt; pane, browse to find &lt;b&gt;msmdsrv.exe&lt;/b&gt;, and then select it.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Attach&lt;/b&gt;, and then wait until the debugger attaches to the running process.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To run through the breakpoints
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Repeat all the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.Notice that SQL Server Management Studio does not immediately appear. Instead, Visual Studio opens.&lt;/li&gt;&lt;li&gt;To see the sequence of events, press F11 repeatedly.If there are no more events, check SQL Server Management Studio to continue with the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;Use the following procedure to remove the Analysis Services Personalization Extensions Sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the roles and assembly from the current Analysis Services instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open SQL Server Management Studio. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Roles&lt;/b&gt;, right-click &lt;b&gt;ASPE Test Users&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At server level, expand &lt;b&gt;Assemblies&lt;/b&gt;, right-click &lt;b&gt;ASPE&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Close SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Restart the service&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the user created for this sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Users&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Remove user1, user2, user3 by right-clicking each user, selecting &lt;b&gt;Delete&lt;/b&gt;, and then clicking &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the ASPE sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;From your solution folder, in the ASPE folder, remove the &lt;b&gt;bin&lt;/b&gt; and &lt;b&gt;obj&lt;/b&gt; folders. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>cmslydia</author><pubDate>Fri, 27 Mar 2009 03:18:23 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample 20090327031823A</guid></item><item><title>Updated Wiki: SS2008!Readme for AS Simple Sample</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme for AS Simple Sample&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_AS Simple Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;AS Simple Sample is a sample C# program that illustrates the use of the Analysis Management Objects (AMO) to create complex OLAP cubes and the use of ADOMD.NET to access the contents of the newly created cubes.&lt;br /&gt;Default location: C:\Program Files\Microsoft SQL Server\100\Samples\Analysis Services\Programmability\AMO\AS Simple Sample&lt;br /&gt;AS Simple Sample is a complete developer sample for Analysis Services multidimensional databases; it covers both sides of the coin for developers: the server administration (using AMO) and the client access to the data (using ADOMD.NET.Client).&lt;br /&gt;From the server administration perspective the AS Simple Sample covers most major objects creation, modifications and process. On the enhancement side it covers aggregation design, perspectives, KPIs, actions, translations, and proactive caching. It also mentions security by using roles and permissions. The sample also covers a data mining structure and model creation and processing.&lt;br /&gt;From the client access perspective, the AS Simple Sample covers most major objects, metadata browsing, and access to the values; it also shows how to implement KPIs, actions, and browsing a data mining model.&lt;br /&gt;While working with the AS Simple Sample, developers can see and understand the impact of using AMO and see the results using ADOMD. One of the most common challenges that developers working with Analysis Services face is how to see the results of what they are doing in AMO from the user perspective. This is because when you design an object (for example, a KPI) you cannot see the results from AMO. In addition, if you are implementing a client interface using ADOMD that permits the user to execute designed actions, there is no easy way to discover the actions implemented unless you browse the actions collection using AMO. The AS Simple Sample therefore the need to have an integrated sample.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;The AS Simple Sample uses a guided set of procedures to create a subset of the functionality of the AdventureWorks cube located in the AdventureWorks Analysis Services Project. Then, the sample allows the user to view results in a client interface.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services sample uses the following features.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  AdventureWorks &lt;/td&gt;&lt;td&gt; AMO, ADOMD.NET Client, ADOMD.NET Server &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have Microsoft SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample databases: the &lt;b&gt;AdventureWorksDW&lt;/b&gt; data warehouse and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services samples and SQL Server Database Engine samples.   You can download these samples from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  You also need .NET Framework SDK 2.0 or Microsoft Visual Studio 2005 installed. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;The AS Simple Sample is composed of three different binaries: &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; 'Simple Sample Stored Procedures.dll'  &lt;/li&gt;&lt;li&gt; 'Simple Sample AMO Access.exe'  &lt;/li&gt;&lt;li&gt; 'Simple Sample ADOMD ClientAccess.exe'  The only requirement to build the sample is to compile 'Simple Sample Stored Procedures.dll' before you compile 'Simple Sample AMO Access.exe'. There is no binary interdependency between the AMO sample and the ADOMD sample.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h6&gt;
To build the Simple Sample Analysis Services sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Compile 'Simple Sample Stored Procedures.dll' by using Visual Studio 2005  and the 'StoredProcedures.sln' file.— or —Compile the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, by executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug &amp;quot;CS/StoredProcedures.sln&amp;quot;&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;&lt;li&gt;Compile 'Simple Sample AMO Access.exe' by using Visual Studio 2005  and the 'ServerAdmin.sln' file.— or —Compile the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, by executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug &amp;quot;CS/ServerAdmin.sln&amp;quot;&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;&lt;li&gt;Compile 'Simple Sample ADOMD ClientAccess.exe' by using Visual Studio 2005 and the 'ClientAccess.sln' file.— or —Compile the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, by executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug &amp;quot;CS/ClientAccess.sln&amp;quot;&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the Simple Sample Analysis Services sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Build the 'Simple Sample' database using 'Simple Sample AMO Access'.&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, with ServerAdmin solution opened, press &lt;b&gt;F5&lt;/b&gt;.— or —In Visual Studio 2005, on the &lt;b&gt;Debug&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;.— or —At a command prompt, use the change directory (CD) command to go to the folder where the sample was built. The default build location is .\CS\ServerAdmin\bin\Debug. In that directory, run the following command (including quotation marks): &lt;span class="codeInline"&gt;&amp;quot;Simple Sample AMO Access.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Execute the suggested steps in the sample interface.&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, with ClientAccess solution opened, press &lt;b&gt;F5&lt;/b&gt;.— or —In Visual Studio 2005, on the &lt;b&gt;Debug&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;.— or —At a command prompt, use the change directory (CD) command to go to the folder where the sample was built. The default build location is .\CS\ClientAccess \bin\Debug. In that directory, run the following command (including quotation marks): &lt;span class="codeInline"&gt;&amp;quot;Simple Sample ADOMD ClientAccess.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Connect to a server and explore the user objects. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>leilu</author><pubDate>Thu, 19 Mar 2009 06:44:15 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme for AS Simple Sample 20090319064415A</guid></item><item><title>Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme for Analysis Services Personalization Extensions Sample&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Analysis Services Personalization Extensions Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;The Analysis Services Personalization Extensions sample is a C# program that illustrates how to create user-based personalizations. These personalizations are not permanent objects in the cube, but are objects that the client application applies dynamically during the user's session.&lt;br /&gt;The Analysis Services Personalization Extensions sample dynamically creates a different object for three different users. For each user connection, the sample enables only the object that is associated with that user. Each of these personalization objects is only visible during the user's session.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;An independent software vendor (ISV) creates an interface that enables a user to design business metrics for his or her company, and then share those metrics with that user's peers. The metrics are dynamic and adjustable to the person who uses them. For example, the ISV designs a client interface that enables a company's business analyst to design a Sales Monthly Goal Tracking indicator. This indicator calculates and tracks the monthly sales goal for each salesperson. The business analyst can then share this indicator with the company's sales team. Now, any member on the team can easily know how he or she is doing towards the monthly goal, as the indicator is automatically  tailored to the goals of each salesperson. &lt;br /&gt;Without the personalization extensions, the indicator would have to be passed to the company's Analysis Services team. This Analysis Services team would have to incorporate the indicator directly into the cube design and then redeploy the cube to the end users. Because the indicator would be an object in the cube, the indicator would not be personalized to each user.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample uses the following features of SQL Server 2008 Analysis Services (SSAS).&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  AdventureWorks &lt;/td&gt;&lt;td&gt; ADOMD.NET Server, MDX &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on Itanium-based computers. The 64-bit development environment is supported on x64-based operating systems. SQL Server 2005 samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based computer.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample databases: the AdventureWorks data warehouse and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services samples and SQL Server Database Engine samples.   You can download these samples from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  You also need .NET Framework SDK 2.0 or Microsoft Visual Studio 2005 installed. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample is composed of one binary file, ASPE.dll.&lt;br /&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the Analysis Services Personalization Extensions Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Rename SampleKey.snk to ASPE.snk and move the file to the same location where ASPE.sln is.&lt;/li&gt;&lt;li&gt;Compile ASPE.dll by using: &lt;/li&gt;&lt;li&gt; Visual Studio 2005 and the ASPE.sln file.  — or —&lt;/li&gt;&lt;li&gt; Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0. Change directory to the location where the solution file ASPE.sln is located. Run a command similar to the following at a command prompt:   &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug ASPE.sln&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h3&gt;
Deploying the Sample
&lt;/h3&gt;To deploy the Analysis Services Personalization Extensions sample, you must add the assembly that you built in the previous procedure to a running instance of Analysis Services.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add ASPE.dll assembly to a running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the instance of Analysis Services.&lt;i&gt;Localhost&lt;/i&gt; is assumed as the default instance for this sample. Replace &lt;i&gt;localhost&lt;/i&gt; in with the name of the instance that you have selected.&lt;/li&gt;&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify that the ASPE assembly is not listed.If the ASPE assembly is listed, remove this assembly by right-clicking the assembly and selecting &lt;b&gt;Delete.&lt;/b&gt; Continue following the steps on the screen.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Assemblies&lt;/b&gt; and select &lt;b&gt;New Assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Register Server Assembly&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Type&lt;/b&gt;, select &lt;b&gt;.NET Assembly&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Filename&lt;/b&gt;, click the browse button &lt;b&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=%u2026&amp;amp;referringTitle=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample"&gt;…&lt;/a&gt;&lt;/b&gt; and find the ASPE.dll file in your project folder under &lt;b&gt;bin/debug&lt;/b&gt; folders.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Permissions&lt;/b&gt;, select &lt;b&gt;Unrestricted&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Impersonation&lt;/b&gt;, select &lt;b&gt;Use the Service Account&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify the ASPE assembly is listed.&lt;/li&gt;&lt;li&gt;To enable the correct management of all events, open SQL Server Configuration Manager, select &lt;b&gt;SQL Server Services&lt;/b&gt;, and then select the &lt;b&gt;SQL Server Analysis Services&lt;/b&gt; row. Click the restart button to restart the service &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Preparing the Environment to Test the Sample
&lt;/h3&gt;On the same server where you are running Analysis Services and have deployed ASPE.dll, use the following procedures to set up the environment to test the sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add three users to your current system
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Users&lt;/b&gt; folder and select &lt;b&gt;New User&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New User&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;User name&lt;/b&gt;, type &lt;b&gt;user1&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Password&lt;/b&gt;, type a strong password that meets your company standards.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Confirm password&lt;/b&gt;, re-type your selected password.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;User must change password at next logon&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Password never expires&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt;Repeat step 4 for &lt;b&gt;user2&lt;/b&gt; and &lt;b&gt;user3&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify Adventure Works DW database is deployed and contains Adventure Works cube
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node and verify that the &lt;b&gt;Adventure Works DW&lt;/b&gt; database exists.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; node, expand the &lt;b&gt;Cubes&lt;/b&gt; node, and verify that the &lt;b&gt;Adventure Works&lt;/b&gt; cube exists.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Adventure Works&lt;/b&gt; cube and select &lt;b&gt;Properties&lt;/b&gt;. Verify that the cube &lt;b&gt;State&lt;/b&gt; is &lt;b&gt;Processed&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;If any one of the previous steps cannot be completed, see the Books Online topic, &lt;a href="http://go.microsoft.com/fwlink/?LinkId=83253" class="externalLink"&gt;Running Setup to Install AdventureWorks Sample Databases and Samples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, in the MSDN Library.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To add a role for the new users and give them access to the cube and dimensions
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Roles&lt;/b&gt;, and then select &lt;b&gt;New role&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Create Role&lt;/b&gt; dialog box, click the &lt;b&gt;General&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Role name&lt;/b&gt;, type &lt;b&gt;ASPE Test Users&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Read definition&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;Full control (Administrator)&lt;/b&gt; and &lt;b&gt;Process database&lt;/b&gt; check boxes.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Membership&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Select Users or Groups&lt;/b&gt; window, for &lt;b&gt;Enter the object names to select&lt;/b&gt;, type &lt;b&gt;user1; user2; user3&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Check Names&lt;/b&gt;.   The values should now appear underlined, with the server or domain name in front of each name.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the &lt;b&gt;Data Sources&lt;/b&gt; page. In the &lt;b&gt;Access&lt;/b&gt; column for the &lt;b&gt;Adventure Works DW&lt;/b&gt; row, select &lt;b&gt;Read&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Cubes&lt;/b&gt; page, and select the following options for the &lt;b&gt;Adventure Works&lt;/b&gt; row:&lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Access&lt;/b&gt; column, select &lt;b&gt;Read&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Local Cube/Drillthrough Access&lt;/b&gt; column, select &lt;b&gt;Drillthrough and Local Cube&lt;/b&gt;. Click &lt;b&gt;OK&lt;/b&gt; to accept the message.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Process&lt;/b&gt; column, select the check box.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Dimensions&lt;/b&gt; page. For each of the rows in &lt;b&gt;Dimensions&lt;/b&gt;, select the &lt;b&gt;Process&lt;/b&gt; column check box.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;, and then wait until the command is processed and the new role is created.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;Testing the sample demonstrates that new personalization objects are created in different user contexts and that those objects are associated with the user profile.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To verify your context
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select the  Adventure Works DW  database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the  Adventure Works  cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder under this node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user1
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user1&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user1 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, and then expand the &lt;b&gt;Internet Sales&lt;/b&gt; node to see the &lt;b&gt;ISV_1&lt;/b&gt; folder.Unlike your user context, user1 has an *ISV_1 *folder under the &lt;b&gt;Internet Sales&lt;/b&gt; node.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder.Notice that the &lt;b&gt;Operations&lt;/b&gt; folder contains the &lt;b&gt;Average Item Freight Cost&lt;/b&gt; member.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Unlike your user context, user1 does have access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder to see the &lt;b&gt;Touring Bikes&lt;/b&gt; set.Unlike your user context, user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user2
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user2&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user2 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select the &lt;b&gt;Adventure Works DW&lt;/b&gt; database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is also visible to this user. &lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the *Rate Difference *member.Notice that for user2 only, the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Notice that user2, just like user1, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the &lt;b&gt;Mountain Bikes&lt;/b&gt; set.While user2 has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set, user2 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operations&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user3
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user3&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user3 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice that the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user2 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;Discount per Order&lt;/b&gt; member.Notice that for user3 only, the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder to see &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.user3, just like user1 and user2, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.While user3 has access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set, user3 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operation&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set. User3 also has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set in the &lt;b&gt;Finance&lt;/b&gt; folder. It is user2 who has no access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Troubleshooting the Sample
&lt;/h3&gt;Use the following set of procedures to troubleshoot the Analysis Services Personalization Extensions sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To define debug breakpoints in the code
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio 2005, open ASPE.sln.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;ASClientExtensions.cs&lt;/i&gt; source file, and then set a breakpoint on the opening brace of the &lt;i&gt;ASClientExtensions&lt;/i&gt; constructor.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;SessionMgr.cs&lt;/i&gt; source file, and then set the following breakpoints:&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;SessionMgr&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;CubeOpened&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;AuthoringAndManagement.cs&lt;/i&gt; source file, and then set the following breakpoints.&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;AuthoringAndManagement&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineMembers&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineSets&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineKPIs&lt;/i&gt; method.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To attach to the running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In the menu bar, select &lt;b&gt;Debug&lt;/b&gt;, and then select &lt;b&gt;Attach to process&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Available Processes&lt;/b&gt; pane, browse to find &lt;b&gt;msmdsrv.exe&lt;/b&gt;, and then select it.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Attach&lt;/b&gt;, and then wait until the debugger attaches to the running process.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To run through the breakpoints
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Repeat all the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.Notice that SQL Server Management Studio does not immediately appear. Instead, Visual Studio opens.&lt;/li&gt;&lt;li&gt;To see the sequence of events, press F11 repeatedly.If there are no more events, check SQL Server Management Studio to continue with the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;Use the following procedure to remove the Analysis Services Personalization Extensions Sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the roles and assembly from the current Analysis Services instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open SQL Server Management Studio. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Roles&lt;/b&gt;, right-click &lt;b&gt;ASPE Test Users&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At server level, expand &lt;b&gt;Assemblies&lt;/b&gt;, right-click &lt;b&gt;ASPE&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Close SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Restart the service&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the user created for this sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Users&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Remove user1, user2, user3 by right-clicking each user, selecting &lt;b&gt;Delete&lt;/b&gt;, and then clicking &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the ASPE sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;From your solution folder, in the ASPE folder, remove the &lt;b&gt;bin&lt;/b&gt; and &lt;b&gt;obj&lt;/b&gt; folders. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 04:03:18 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample 20090319040318A</guid></item><item><title>Updated Wiki: SS2008!BackupAndRestore</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!BackupAndRestore&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Backup and Restore Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The Backup and Restore sample lets you use Analysis Management Objects (AMO) to connect to a server that is running Microsoft SQL Server Analysis Services. The sample creates a new empty database, completes a backup of that database, deletes the database, restores the database from the backup, and deletes that database.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample shows you how to back up and restore your Analysis Services databases programmatically.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services sample uses the following items.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks&lt;/td&gt;&lt;td&gt; AMO Objects &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you must have the following software installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005.   You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks AS&lt;/b&gt; database.   You can download this sample database from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  After your sample has been successfully compiled, you have to access one of the Analysis Services sample databases to test your program. We recommend that you use the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database that is provided with SQL Server.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h5&gt;
User Permissions for Backup
&lt;/h5&gt;For each backup file, the user who runs the backup command must have permission to write to the backup location specified. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance, or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.&lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
User Permissions for Restore
&lt;/h5&gt;For each backup file, the user who runs the restore command must have permission to read from the backup location specified. To restore an Analysis Services database that is not installed on the server, the user must also be a member of the server role for that Analysis Services instance. To overwrite an Analysis Services database, the user must have one of the following roles: a member of the server role for the Analysis Services instance, or a member of a database role with Full Control (Administrator) permissions on the database to be restored.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  After restoring an existing database, the user who restored the database might lose access to the restored database. This loss of access can occur if, at the time that the backup was performed, the user was not a member of the server role or was not a member of the database role with Full Control (Administrator) permissions. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the Backup and Restore sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Build the sample by using Visual Studio 2005 and the provided Visual Studio solution.— or —&lt;/li&gt;&lt;li&gt;Build the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, and run a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/BackupAndRestore.sln&lt;/span&gt; Other Microsoft MSBuild build options can be used depending on your needs.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the Backup and Restore sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Visual Studio 2005, press &lt;b&gt;F5&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, click &lt;b&gt;Start&lt;/b&gt; on the &lt;b&gt;Debug&lt;/b&gt; menu.— or —&lt;/li&gt;&lt;li&gt;At a command prompt, run a command similar to the following: &lt;span class="codeInline"&gt;CS\BackupAndRestore\bin\Debug\BackupAndRestore.exe&lt;/span&gt; The path might vary depending on the options that were used to compile the sample and the starting folder when at command prompt.After you run the sample, the backup file of the temporary database created by the sample will be located at &lt;i&gt;&amp;lt;system&lt;/i&gt;drive&amp;gt;&lt;i&gt;:\backup_&lt;/i&gt;file&lt;i&gt;_generated_&lt;/i&gt;by&lt;i&gt;_AMO_&lt;/i&gt;sample&lt;i&gt;_code&lt;/i&gt;.abf.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Tasks
&lt;/h6&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=SS2008%21BackupAndRestore"&gt;Readme_DisplayObjectNames Sample&lt;/a&gt;  &lt;br /&gt;&lt;h6&gt;
Concepts
&lt;/h6&gt;&lt;i&gt;Analysis Services Multidimensional Database Samples&lt;/i&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 03:51:39 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!BackupAndRestore 20090319035139A</guid></item><item><title>Updated Wiki: SS2008!DisplayObjectsName</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!DisplayObjectsName&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_DisplayObjectNames Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;With the DisplayObjectNames sample, you can use Analysis Management Objects (AMO) objects to connect to a server that is running Microsoft SQL Server Analysis Services and then display the names of some of the AMO objects.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample shows how to create a connection to an Analysis Services server by using AMO objects.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services sample uses the following items.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks&lt;/td&gt;&lt;td&gt; AMO Objects &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you must have the following software installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005.   You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks AS&lt;/b&gt; database.   You can download this sample database from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; The DisplayObjectNames sample.   You can download this sample from the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codeplex.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  After your sample has been successfully compiled, you will have to access one of the Analysis Services sample databases to test your program. We recommend that you use the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database that is provided with SQL Server.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the DisplayObjectNames sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Build the sample by using Visual Studio 2005 and the provided Visual Studio solution.— or —&lt;/li&gt;&lt;li&gt;Build the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, and run a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/DisplayObjectNames.sln&lt;/span&gt; Other MSBuild build options can be used depending on your needs.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the Display Object Names sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At a command prompt, run a command similar to the following: &lt;span class="codeInline"&gt;CS\DisplayObjectNames\bin\Debug\DisplayObjectNames.exe localhost&lt;/span&gt; The path might vary depending on the options that are used to compile the sample and your starting folder.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;Readme for AMOBrowser sample&lt;/b&gt;  &lt;b&gt;SQL Server Analysis Services Samples&lt;/b&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 03:28:57 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!DisplayObjectsName 20090319032857A</guid></item><item><title>Updated Wiki: SS2008!AMOBrowser</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!AMOBrowser&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for AMOBrowser Sample
&lt;/h2&gt; &lt;br /&gt; [This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;The AMOBrowser sample lets you use Analysis Management Objects (AMO) objects to connect to a Microsoft SQL Server Analysis Services server, and then browse different AMO objects and their properties.&lt;br /&gt;AMOBrowser uses a TreeView to display the AMO hierarchy and a PropertyGrid to display the properties of a selected object.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample shows you how to create a connection to an Analysis Services server by using AMO objects. The sample also shows you how to grab all AMO objects, together with their corresponding properties.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services sample uses the following items:&lt;br /&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks&lt;/td&gt;&lt;td&gt; AMO Objects &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have the following software installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; .NET Framework SDK 2.0 or Microsoft Visual Studio 2005.   You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; The &lt;b&gt;AdventureWorks AS&lt;/b&gt; database.   You can download this sample database from the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codeplex.com/sqlserversamples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; The AMOBrowser sample.   You can download this sample from the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codeplex.com/sqlserversamples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  After your sample has been successfully compiled, you will have to access one of the Analysis Services sample databases to test your program. We recommend that you use the &lt;b&gt;AdventureWorks&lt;/b&gt; sample database that is provided with SQL Server.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the AMOBrowser sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Build the sample by using Visual Studio 2005 and the provided Visual Studio solution.— or —&lt;/li&gt;&lt;li&gt;Build the sample by using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, and executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/AmoBrowser.sln&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the AMOBrowser sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Visual Studio 2005, press &lt;b&gt;F5&lt;/b&gt;. — or —&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, on the &lt;b&gt;Debug&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;At a command prompt, run a command similar to the following path: &lt;span class="codeInline"&gt;CS\AmoBrowser\bin\Debug\AmoBrowser.exe&lt;/span&gt;  &amp;#169; 2007 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 03:18:33 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!AMOBrowser 20090319031833A</guid></item><item><title>Updated Wiki: SS2008!Readme_AMOAdventureWorks</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme_AMOAdventureWorks&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_AMOAdventureWorks Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;AMOAdventureWorks is a sample C# program that illustrates the use of the Analysis Management Objects (AMO) to create complex OLAP cubes.&lt;br /&gt;Default location: C:\Program Files\Microsoft SQL Server\100\Samples\Analysis Services\Programmability\AMO\AMOAdventureWorks&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample creates a subset of the functionality of the AdventureWorks cube located in the AdventureWorks Analysis Services Project.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The SQL Server Analysis Services sample uses the following features.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks&lt;/td&gt;&lt;td&gt; AMO &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have Microsoft SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample database: the &lt;b&gt;AdventureWorksDW&lt;/b&gt; data warehouse.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services and SQL Server Database Engine.   You can download these samples from the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codeplex.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  You also must have .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the AMOAdventureWorks sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Compile the sample by using Visual Studio 2005 and the provided Visual Studio solution.— or —&lt;/li&gt;&lt;li&gt;Compile the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, by executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/AMOAdventureWorks.sln&lt;/span&gt; Other MSBuild build options can be used depending on your needs.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the AMOAdventureWorks sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Visual Studio 2005, press &lt;b&gt;F5&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, on the &lt;b&gt;Debug&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;At a command prompt, use the change directory (CD) command to go to the folder where the sample was built. In that directory, run the following command: &lt;span class="codeInline"&gt;AMOAdventureWorks.exe&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Tasks
&lt;/h6&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=SS2008%21Readme_AMOAdventureWorks"&gt;Readme_DisplayObjectNames Sample&lt;/a&gt;  &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;SQL Server Analysis Services Samples&lt;/b&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Thu, 19 Mar 2009 02:56:25 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_AMOAdventureWorks 20090319025625A</guid></item><item><title>Updated Wiki: SS2008!Readme_AMOAdventureWorks</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008!Readme_AMOAdventureWorks&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_AMOAdventureWorks Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt; This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005. &lt;br /&gt;AMOAdventureWorks is a sample C# program that illustrates the use of the Analysis Management Objects (AMO) to create complex OLAP cubes.&lt;br /&gt;Default location: C:\Program Files\Microsoft SQL Server\100\Samples\Analysis Services\Programmability\AMO\AMOAdventureWorks&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;This sample creates a subset of the functionality of the AdventureWorks cube located in the AdventureWorks Analysis Services Project.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The SQL Server Analysis Services sample uses the following features.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks&lt;/td&gt;&lt;td&gt; AMO &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have Microsoft SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on computers that run the Itanium-based operating system; the 64-bit development environment is supported on x64-based operating systems. SQL Server samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based operating system.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample database: the &lt;b&gt;AdventureWorksDW&lt;/b&gt; data warehouse, the &lt;b&gt;AdventureWorksAS&lt;/b&gt; OLAP database, and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services and SQL Server Database Engine.   You can download these samples from the &lt;b&gt;Microsoft SQL Server Samples and Community Projects&lt;/b&gt; Web site at &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;http://www.codeplex.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt; in SQL Server Books Online.  You also must have .NET Framework SDK 2.0 or Microsoft Visual Studio 2005. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt; in SQL Server Books Online.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the AMOAdventureWorks sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Compile the sample by using Visual Studio 2005 and the provided Visual Studio solution.— or —&lt;/li&gt;&lt;li&gt;Compile the sample using Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0, by executing a command similar to the following at a command prompt: &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/AMOAdventureWorks.sln&lt;/span&gt; Other MSBuild build options can be used depending on your needs.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Running the Sample
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
To run the AMOAdventureWorks sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;In Visual Studio 2005, press &lt;b&gt;F5&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;In Visual Studio 2005, on the &lt;b&gt;Debug&lt;/b&gt; menu, click &lt;b&gt;Start&lt;/b&gt;.— or —&lt;/li&gt;&lt;li&gt;At a command prompt, use the change directory (CD) command to go to the folder where the sample was built. In that directory, run the following command: &lt;span class="codeInline"&gt;AMOAdventureWorks.exe&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
See Also
&lt;/h3&gt; &lt;br /&gt;&lt;h6&gt;
Tasks
&lt;/h6&gt;&lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=SS2008%21Readme_AMOAdventureWorks"&gt;Readme_DisplayObjectNames Sample&lt;/a&gt;  &lt;br /&gt;&lt;h6&gt;
Other Resources
&lt;/h6&gt;&lt;b&gt;SQL Server Analysis Services Samples&lt;/b&gt;    &lt;br /&gt;&lt;h6&gt;
 Help and Information
&lt;/h6&gt;&lt;ul&gt;
&lt;li&gt;Getting SQL Server 2008 Assistance* &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>libinzhao</author><pubDate>Wed, 18 Mar 2009 03:41:50 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme_AMOAdventureWorks 20090318034150A</guid></item><item><title>Updated Wiki: Home</title><link>http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=Home&amp;version=34</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Analysis Services Product Samples&lt;br /&gt; &lt;br /&gt;SQL Server Analysis Services provides, a unified and integrated view of all your business data as the foundation for all of your traditional reporting, online analytical processing (OLAP) analysis, Key Performance Indicator (KPI) scorecards, and data mining.&lt;br /&gt; &lt;br /&gt;This project contains Analysis Services samples released with Microsoft SQL Server product. These samples are in the following three categories: Administrator, Data Mining, and Programmability. If you are interested in contributing Analysis Services samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTASProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Administrator&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Activity Viewer &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Activity%20Viewer&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Aggregation Manager Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20for%20Aggregation%20Manager%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Upgrade Verification Tool Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20for%20Analysis%20Services%20Upgrade%20Verification%20Tool%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ASTrace Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20for%20ASTrace%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Command-line Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20For%20Command-line%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=18652"&gt;SQL Server 2008 SR1&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Data Mining&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Data Mining Web Controls Library &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Data%20Mining%20Web%20Controls%20Library&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SQL Server Plug-In Algorithms &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20for%20SQL%20Server%20Plug-In%20Algorithms&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Extensibility&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Personalization Extensions Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Programmability&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOBrowser &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21AMOBrowser&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21AMOBrowser&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; BackupAndRestore &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DisplayObjectsName &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AS Simple Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2005%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://msftasprodsamples.codeplex.com/Wiki/View.aspx?title=SS2008%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;
&lt;/div&gt;</description><author>ReedMe</author><pubDate>Fri, 06 Mar 2009 19:43:52 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20090306074352P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=Home&amp;version=33</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Analysis Services Product Samples&lt;br /&gt; &lt;br /&gt;SQL Server Analysis Services provides, a unified and integrated view of all your business data as the foundation for all of your traditional reporting, online analytical processing (OLAP) analysis, Key Performance Indicator (KPI) scorecards, and data mining.&lt;br /&gt; &lt;br /&gt;This project contains Analysis Services samples released with Microsoft SQL Server product. These samples are in the following three categories: Administrator, Data Mining, and Programmability. If you are interested in contributing Analysis Services samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTASProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Administrator&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Activity Viewer &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Activity%20Viewer&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Aggregation Manager Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20Aggregation%20Manager%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Upgrade Verification Tool Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20Analysis%20Services%20Upgrade%20Verification%20Tool%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ASTrace Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20ASTrace%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Command-line Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20For%20Command-line%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Release/ProjectReleases.aspx?ReleaseId=18652"&gt;SQL Server 2008 SR1&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Data Mining&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Data Mining Web Controls Library &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Data%20Mining%20Web%20Controls%20Library&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SQL Server Plug-In Algorithms &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20SQL%20Server%20Plug-In%20Algorithms&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Extensibility&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Personalization Extensions Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Programmability&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOBrowser &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21AMOBrowser&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; BackupAndRestore &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DisplayObjectsName &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AS Simple Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Got questions? Want to contribute?&lt;/b&gt; Check out the &lt;a href="http://social.msdn.microsoft.com/Forums/en-us/sqlserversamples/threads" class="externalLink"&gt;SQL Server Community &amp;amp; Samples Discussion Forum&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;
&lt;/div&gt;</description><author>ReedMe</author><pubDate>Thu, 29 Jan 2009 23:01:13 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20090129110113P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=Home&amp;version=32</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://CodePlex.com/SqlServerSamples" class="externalLink"&gt;SQL Server Samples Portal Page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; &amp;gt; SQL Server Analysis Services Product Samples&lt;br /&gt; &lt;br /&gt;SQL Server Analysis Services provides, a unified and integrated view of all your business data as the foundation for all of your traditional reporting, online analytical processing (OLAP) analysis, Key Performance Indicator (KPI) scorecards, and data mining.&lt;br /&gt; &lt;br /&gt;This project contains Analysis Services samples released with Microsoft SQL Server product. These samples are in the following three categories: Administrator, Data Mining, and Programmability. If you are interested in contributing Analysis Services samples, please let us know by posting in the developers' forum.&lt;br /&gt; &lt;br /&gt;To download these samples click on the Releases tab (or click &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSFTASProdSamples" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), optionally select another (older) release, then click on the Windows Installer package (MSI file) which matches the architecture of the installation computer.&lt;br /&gt; &lt;br /&gt;For information about how to use CodePlex to access SQL Server samples, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=HowToUseCodePlex&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;To download samples databases, click &lt;a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and then click the appropriate MSI file.&lt;br /&gt;For release notes and brief descriptions of all the sample databases and code, including restrictions on SQL Express and Vista, click &lt;a href="http://www.codeplex.com/SqlServerSamples/Wiki/View.aspx?title=SQLServerDatabasesandSamplesOverview&amp;amp;referringTitle=Home" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Administrator&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Activity Viewer &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Activity%20Viewer&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Aggregation Manager Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20Aggregation%20Manager%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Upgrade Verification Tool Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20Analysis%20Services%20Upgrade%20Verification%20Tool%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; ASTrace Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20ASTrace%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Command-line Utility Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20For%20Command-line%20Utility%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Release/ProjectReleases.aspx?ReleaseId=18652"&gt;SQL Server 2008 Samples Refresh 1&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Data Mining&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Data Mining Web Controls Library &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Data%20Mining%20Web%20Controls%20Library&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; SQL Server Plug-In Algorithms &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20SQL%20Server%20Plug-In%20Algorithms&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Extensibility&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Analysis Services Personalization Extensions Sample &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
&lt;b&gt;Programmability&lt;/b&gt;
&lt;/h3&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Sample &lt;/th&gt;&lt;th&gt; SQL Server 2005 &lt;/th&gt;&lt;th&gt; SQL Server 2008 &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOBrowser &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21AMOBrowser&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; n/a &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; BackupAndRestore &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21BackupAndRestore&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; DisplayObjectsName &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21DisplayObjectsName&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AS Simple Sample &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme%20for%20AS%20Simple%20Sample&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; AMOAdventureWorks &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2005&lt;/a&gt; &lt;/td&gt;&lt;td&gt; &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008%21Readme_AMOAdventureWorks&amp;amp;referringTitle=Home"&gt;SS2008&lt;/a&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>carlrabeler</author><pubDate>Sat, 15 Nov 2008 00:04:01 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20081115120401A</guid></item><item><title>Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample</title><link>http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2008!Readme for Analysis Services Personalization Extensions Sample&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme_Analysis Services Personalization Extensions Sample
&lt;/h2&gt; &lt;br /&gt; 11/05/2008 21:36:06&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;This sample works only with SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2008.&lt;br /&gt;The Analysis Services Personalization Extensions sample is a C# program that illustrates how to create user-based personalizations. These personalizations are not permanent objects in the cube, but are objects that the client application applies dynamically during the user's session.&lt;br /&gt;The Analysis Services Personalization Extensions sample dynamically creates a different object for three different users. For each user connection, the sample enables only the object that is associated with that user. Each of these personalization objects is only visible during the user's session.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;An independent software vendor (ISV) creates an interface that enables a user to design business metrics for his or her company, and then share those metrics with that user's peers. The metrics are dynamic and adjustable to the person who uses them. For example, the ISV designs a client interface that enables a company's business analyst to design a Sales Monthly Goal Tracking indicator. This indicator calculates and tracks the monthly sales goal for each salesperson. The business analyst can then share this indicator with the company's sales team. Now, any member on the team can easily know how he or she is doing towards the monthly goal, as the indicator is automatically  tailored to the goals of each salesperson. &lt;br /&gt;Without the personalization extensions, the indicator would have to be passed to the company's Analysis Services team. This Analysis Services team would have to incorporate the indicator directly into the cube design and then redeploy the cube to the end users. Because the indicator would be an object in the cube, the indicator would not be personalized to each user.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt;C#&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Features
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample uses the following features of SQL Server 2008 Analysis Services (SSAS).&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Application Area &lt;/th&gt;&lt;th&gt;  Features  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  AdventureWorks &lt;/td&gt;&lt;td&gt; ADOMD.NET Server, MDX &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have SQL Server and the following SQL Server components installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; SQL Server Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio    &lt;b&gt;Note:   Business Intelligence Development Studio is not supported on Itanium-based computers. The 64-bit development environment is supported on x64-based operating systems. SQL Server 2005 samples can be modified and run on computers that run either x86 or x64-based operating systems when databases used by the samples are deployed on an Itanium-based computer.&lt;/b&gt;&lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server sample databases: the AdventureWorks data warehouse and the AdventureWorks database.   You can download these sample databases from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install sample databases, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  &lt;/li&gt;&lt;li&gt; Updated versions of the following SQL Server samples: Analysis Services samples and SQL Server Database Engine samples.   You can download these samples from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=85384" class="externalLink"&gt;Microsoft SQL Server Samples and Community Projects&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web site. For more information about how to download and install samples, see &lt;i&gt;Installing SQL Server Samples and Sample Databases&lt;/i&gt;.  You also need .NET Framework SDK 2.0 or Microsoft Visual Studio 2005 installed. You can obtain .NET Framework SDK free of charge. For more information, see &lt;b&gt;Installing the .NET Framework SDK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h3&gt;
Building the Sample
&lt;/h3&gt;The Analysis Services Personalization Extensions Sample is composed of one binary file, ASPE.dll.&lt;br /&gt;If you have not already created a strong name key file, generate the key file using the following instructions.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
 To generate a strong name key file
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open a Microsoft Visual Studio 2005 command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.-- or --Open a Microsoft .NET Framework command prompt. Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft .NET Framework SDK 2.0&lt;/b&gt;, and then click &lt;b&gt;SDK Command Prompt&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed. &lt;b&gt;Note: To determine the folder where samples are located, click the &lt;b&gt;Start&lt;/b&gt; button, point to &lt;b&gt;All Programs&lt;/b&gt;, point to &lt;b&gt;Microsoft SQL Server&lt;/b&gt;, point to &lt;b&gt;Documentation and Tutorials&lt;/b&gt;, and then click &lt;b&gt;Samples Directory&lt;/b&gt;. If the default installation location was used, the samples are located in &amp;lt;system_drive&amp;gt;:\Program Files\Microsoft SQL Server\100\Samples.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;At the command prompt, run the following command to generate the key file: &lt;span class="codeInline"&gt;sn -k SampleKey.snk&lt;/span&gt;  &lt;b&gt;Important: For more information about the strong-name key pair, see &amp;quot;Security Briefs: Strong Names and Security in the .NET Framework&amp;quot; in the .NET Development Center on MSDN.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To build the Analysis Services Personalization Extensions Sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Rename SampleKey.snk to ASPE.snk and move the file to the same location where ASPE.sln is.&lt;/li&gt;&lt;li&gt;Compile ASPE.dll by using: &lt;/li&gt;&lt;li&gt; Visual Studio 2005 and the ASPE.sln file.  — or —&lt;/li&gt;&lt;li&gt; Microsoft MSBuild, which is included in the .NET Framework SDK&amp;nbsp;2.0. Change directory to the location where the solution file ASPE.sln is located. Run a command similar to the following at a command prompt:   &lt;span class="codeInline"&gt;msbuild /nologo /verbosity:quiet /property:Configuration=Debug ASPE.sln&lt;/span&gt; You can use other MSBuild build options depending on your needs.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h3&gt;
Deploying the Sample
&lt;/h3&gt;To deploy the Analysis Services Personalization Extensions sample, you must add the assembly that you built in the previous procedure to a running instance of Analysis Services.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add ASPE.dll assembly to a running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the instance of Analysis Services.&lt;i&gt;Localhost&lt;/i&gt; is assumed as the default instance for this sample. Replace &lt;i&gt;localhost&lt;/i&gt; in with the name of the instance that you have selected.&lt;/li&gt;&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify that the ASPE assembly is not listed.If the ASPE assembly is listed, remove this assembly by right-clicking the assembly and selecting &lt;b&gt;Delete.&lt;/b&gt; Continue following the steps on the screen.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Assemblies&lt;/b&gt; and select &lt;b&gt;New Assembly&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Register Server Assembly&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Type&lt;/b&gt;, select &lt;b&gt;.NET Assembly&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Filename&lt;/b&gt;, click the browse button &lt;b&gt;&lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=%u2026&amp;amp;referringTitle=SS2008%21Readme%20for%20Analysis%20Services%20Personalization%20Extensions%20Sample"&gt;…&lt;/a&gt;&lt;/b&gt; and find the ASPE.dll file in your project folder under &lt;b&gt;bin/debug&lt;/b&gt; folders.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Permissions&lt;/b&gt;, select &lt;b&gt;Unrestricted&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Impersonation&lt;/b&gt;, select &lt;b&gt;Use the Service Account&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;At the server level, open the &lt;b&gt;Assemblies&lt;/b&gt; folder and verify the ASPE assembly is listed.&lt;/li&gt;&lt;li&gt;To enable the correct management of all events, open SQL Server Configuration Manager, select &lt;b&gt;SQL Server Services&lt;/b&gt;, and then select the &lt;b&gt;SQL Server Analysis Services&lt;/b&gt; row. Click the restart button to restart the service &lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Preparing the Environment to Test the Sample
&lt;/h3&gt;On the same server where you are running Analysis Services and have deployed ASPE.dll, use the following procedures to set up the environment to test the sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To add three users to your current system
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Users&lt;/b&gt; folder and select &lt;b&gt;New User&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;New User&lt;/b&gt; dialog box, select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;User name&lt;/b&gt;, type &lt;b&gt;user1&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Password&lt;/b&gt;, type a strong password that meets your company standards.  &lt;/li&gt;&lt;li&gt; For &lt;b&gt;Confirm password&lt;/b&gt;, re-type your selected password.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;User must change password at next logon&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Password never expires&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt;Repeat step 4 for &lt;b&gt;user2&lt;/b&gt; and &lt;b&gt;user3&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify Adventure Works DW database is deployed and contains Adventure Works cube
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node and verify that the &lt;b&gt;Adventure Works DW&lt;/b&gt; database exists.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; node, expand the &lt;b&gt;Cubes&lt;/b&gt; node, and verify that the &lt;b&gt;Adventure Works&lt;/b&gt; cube exists.&lt;/li&gt;&lt;li&gt;Right-click the &lt;b&gt;Adventure Works&lt;/b&gt; cube and select &lt;b&gt;Properties&lt;/b&gt;. Verify that the cube &lt;b&gt;State&lt;/b&gt; is &lt;b&gt;Processed&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;If any one of the previous steps cannot be completed, see the Books Online topic, &lt;a href="http://go.microsoft.com/fwlink/?LinkId=83253" class="externalLink"&gt;Running Setup to Install AdventureWorks Sample Databases and Samples&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, in the MSDN Library.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To add a role for the new users and give them access to the cube and dimensions
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;On an Analysis Services instance, open SQL Server Management Studio and connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand the &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Right-click &lt;b&gt;Roles&lt;/b&gt;, and then select &lt;b&gt;New role&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Create Role&lt;/b&gt; dialog box, click the &lt;b&gt;General&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; For &lt;b&gt;Role name&lt;/b&gt;, type &lt;b&gt;ASPE Test Users&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Select the &lt;b&gt;Read definition&lt;/b&gt; check box.  &lt;/li&gt;&lt;li&gt; Clear the &lt;b&gt;Full control (Administrator)&lt;/b&gt; and &lt;b&gt;Process database&lt;/b&gt; check boxes.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Membership&lt;/b&gt; page, and select the following options:&lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Add&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Select Users or Groups&lt;/b&gt; window, for &lt;b&gt;Enter the object names to select&lt;/b&gt;, type &lt;b&gt;user1; user2; user3&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;Check Names&lt;/b&gt;.   The values should now appear underlined, with the server or domain name in front of each name.  &lt;/li&gt;&lt;li&gt; Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;                    &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click the &lt;b&gt;Data Sources&lt;/b&gt; page. In the &lt;b&gt;Access&lt;/b&gt; column for the &lt;b&gt;Adventure Works DW&lt;/b&gt; row, select &lt;b&gt;Read&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Cubes&lt;/b&gt; page, and select the following options for the &lt;b&gt;Adventure Works&lt;/b&gt; row:&lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Access&lt;/b&gt; column, select &lt;b&gt;Read&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Local Cube/Drillthrough Access&lt;/b&gt; column, select &lt;b&gt;Drillthrough and Local Cube&lt;/b&gt;. Click &lt;b&gt;OK&lt;/b&gt; to accept the message.  &lt;/li&gt;&lt;li&gt; In the &lt;b&gt;Process&lt;/b&gt; column, select the check box.  &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;Dimensions&lt;/b&gt; page. For each of the rows in &lt;b&gt;Dimensions&lt;/b&gt;, select the &lt;b&gt;Process&lt;/b&gt; column check box.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;, and then wait until the command is processed and the new role is created.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Testing the Sample
&lt;/h3&gt;Testing the sample demonstrates that new personalization objects are created in different user contexts and that those objects are associated with the user profile.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To verify your context
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In SQL Server Management Studio, connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select the  Adventure Works DW  database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the  Adventure Works  cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder under this node. &lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this dimension.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user1
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user1&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user1 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the SQL Server Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, and then expand the &lt;b&gt;Internet Sales&lt;/b&gt; node to see the &lt;b&gt;ISV_1&lt;/b&gt; folder.Unlike your user context, user1 has an *ISV_1 *folder under the &lt;b&gt;Internet Sales&lt;/b&gt; node.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder.Notice that the &lt;b&gt;Operations&lt;/b&gt; folder contains the &lt;b&gt;Average Item Freight Cost&lt;/b&gt; member.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Unlike your user context, user1 does have access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Operations&lt;/b&gt; folder to see the &lt;b&gt;Touring Bikes&lt;/b&gt; set.Unlike your user context, user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user2
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user2&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user2 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select the &lt;b&gt;Adventure Works DW&lt;/b&gt; database if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube if it is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is also visible to this user. &lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the *Rate Difference *member.Notice that for user2 only, the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Common&lt;/b&gt; folder to see the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.Notice that user2, just like user1, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Finance&lt;/b&gt; folder to see the &lt;b&gt;Mountain Bikes&lt;/b&gt; set.While user2 has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set, user2 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operations&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set&lt;b&gt;.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To verify the context for user3
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Users running Windows XP or Windows Server 2003. Right-click the SQL Server Management Studio icon, select &lt;b&gt;Run as&lt;/b&gt;, and then select the following options:&lt;/li&gt;&lt;li&gt; Select &lt;b&gt;The following user&lt;/b&gt;.  &lt;/li&gt;&lt;li&gt; Replace with &lt;b&gt;user3&lt;/b&gt;. Make sure that the domain or server name is correct.  &lt;/li&gt;&lt;li&gt; Proceed to step 3.  &lt;/li&gt;&lt;li&gt;Users running Windows Vista or Windows Server 2008. Open a command window and run the following command: &lt;span class="codeInline"&gt;runas.exe /profile /user:&lt;/span&gt; &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\user3 &amp;quot;&lt;/span&gt; &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; &lt;span class="codeInline"&gt;\Ssms.exe&amp;quot;&lt;/span&gt; &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Domain&amp;gt;&lt;/i&gt; with the correct domain or server name.  &lt;/li&gt;&lt;li&gt; Replace &lt;i&gt;&amp;lt;Path-to-ssms&amp;gt;&lt;/i&gt; with the complete path to ssms.exe, the executable file for SQL Server Management Studio.   &lt;b&gt;Note:   Windows Vista and Windows Server 2008 no longer have the &lt;b&gt;Run as&lt;/b&gt; option when you right-click an application.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Ensure that &lt;b&gt;Server type&lt;/b&gt; is set to Analysis Services, then connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Standard toolbar, click &lt;b&gt;Analysis Services MDX Query&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;.&lt;/li&gt;&lt;li&gt;On the Analysis Services toolbar, select &lt;b&gt;Adventure Works DW&lt;/b&gt; database, if it is not already selected.&lt;/li&gt;&lt;li&gt;In the left pane of the MDX tab, in the &lt;b&gt;Cube&lt;/b&gt; list, select the &lt;b&gt;Adventure Works&lt;/b&gt; cube, if is not already selected.&lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Metadata&lt;/b&gt; tab, if it is not already selected.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Measures&lt;/b&gt; node, expand the &lt;b&gt;Internet Sales&lt;/b&gt; node, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder. Notice that the &lt;b&gt;Gross Internet Profit&lt;/b&gt; member is visible to this user.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user1 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Reseller Sales&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group, and verify that there is no &lt;b&gt;ISV_1&lt;/b&gt; folder in this group.Only user2 has an &lt;b&gt;ISV_1&lt;/b&gt; folder in the &lt;b&gt;Exchange Rates&lt;/b&gt; measure group.&lt;/li&gt;&lt;li&gt;Return to the &lt;b&gt;Measures&lt;/b&gt; node and expand the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;Reseller Discount per Order&lt;/b&gt; member.Notice that for user3 only, the &lt;b&gt;Reseller Orders&lt;/b&gt; measure group has an &lt;b&gt;ISV_1&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Geography&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and expand the &lt;b&gt;Common&lt;/b&gt; folder to see &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.user3, just like user1 and user2, has access to the &lt;b&gt;ISV_1 - Western Coast&lt;/b&gt; set.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Product&lt;/b&gt; dimension, expand the &lt;b&gt;ISV_1&lt;/b&gt; folder, and then expand the &lt;b&gt;Marketing&lt;/b&gt; folder to see the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.While user3 has access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set, user3 does not have access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set in the &lt;b&gt;Operation&lt;/b&gt; folder. Only user1 has access to the &lt;b&gt;Touring Bikes&lt;/b&gt; set. User3 also has access to the &lt;b&gt;Mountain Bikes&lt;/b&gt; set in the &lt;b&gt;Finance&lt;/b&gt; folder. It is user2 who has no access to the &lt;b&gt;All Terrain Bikes&lt;/b&gt; set.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Troubleshooting the Sample
&lt;/h3&gt;Use the following set of procedures to troubleshoot the Analysis Services Personalization Extensions sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To define debug breakpoints in the code
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Visual Studio 2005, open ASPE.sln.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;ASClientExtensions.cs&lt;/i&gt; source file, and then set a breakpoint on the opening brace of the &lt;i&gt;ASClientExtensions&lt;/i&gt; constructor.&lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;SessionMgr.cs&lt;/i&gt; source file, and then set the following breakpoints:&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;SessionMgr&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;CubeOpened&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt;Open the source code for the &lt;i&gt;AuthoringAndManagement.cs&lt;/i&gt; source file, and then set the following breakpoints.&lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;AuthoringAndManagement&lt;/i&gt; constructor.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineMembers&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineSets&lt;/i&gt; method.  &lt;/li&gt;&lt;li&gt; Set a breakpoint on the opening brace of the &lt;i&gt;DefineKPIs&lt;/i&gt; method.  &lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To attach to the running instance of Analysis Services
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In the menu bar, select &lt;b&gt;Debug&lt;/b&gt;, and then select &lt;b&gt;Attach to process&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;In the &lt;b&gt;Available Processes&lt;/b&gt; pane, browse to find &lt;b&gt;msmdsrv.exe&lt;/b&gt;, and then select it.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Attach&lt;/b&gt;, and then wait until the debugger attaches to the running process.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To run through the breakpoints
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Repeat all the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.Notice that SQL Server Management Studio does not immediately appear. Instead, Visual Studio opens.&lt;/li&gt;&lt;li&gt;To see the sequence of events, press F11 repeatedly.If there are no more events, check SQL Server Management Studio to continue with the steps in the procedure, &lt;b&gt;To verify the context for user1&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Removing the Sample
&lt;/h3&gt;Use the following procedure to remove the Analysis Services Personalization Extensions Sample.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To remove the roles and assembly from the current Analysis Services instance
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Open SQL Server Management Studio. &lt;/li&gt;&lt;li&gt;Connect to the &lt;b&gt;Server Name&lt;/b&gt;, &lt;i&gt;localhost&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Databases&lt;/b&gt; node, and then expand &lt;b&gt;Adventure Works DW&lt;/b&gt; database.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Roles&lt;/b&gt;, right-click &lt;b&gt;ASPE Test Users&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;At server level, expand &lt;b&gt;Assemblies&lt;/b&gt;, right-click &lt;b&gt;ASPE&lt;/b&gt;, select &lt;b&gt;Delete&lt;/b&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Close SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Restart the service&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the user created for this sample
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, right-click &lt;b&gt;My Computer&lt;/b&gt;, and select &lt;b&gt;Manage&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;b&gt;Local Users and Groups&lt;/b&gt; to see the &lt;b&gt;Users&lt;/b&gt; and &lt;b&gt;Groups&lt;/b&gt; folders.&lt;/li&gt;&lt;li&gt;Expand the &lt;b&gt;Users&lt;/b&gt; folder.&lt;/li&gt;&lt;li&gt;Remove user1, user2, user3 by right-clicking each user, selecting &lt;b&gt;Delete&lt;/b&gt;, and then clicking &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To remove the ASPE sample
&lt;/h6&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;From your solution folder, in the ASPE folder, remove the &lt;b&gt;bin&lt;/b&gt; and &lt;b&gt;obj&lt;/b&gt; folders. &amp;#169; 2008 Microsoft Corporation. All rights reserved.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:18:04 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2008!Readme for Analysis Services Personalization Extensions Sample 20081106111804P</guid></item><item><title>Updated Wiki: SS2005!Readme for SQL Server Plug-In Algorithms</title><link>http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005!Readme for SQL Server Plug-In Algorithms&amp;version=16</link><description>&lt;div class="wikidoc"&gt;
&lt;h2&gt;
Readme for SQL Server Plug-In Algorithms
&lt;/h2&gt; &lt;br /&gt;  &lt;br /&gt; Updated: &lt;b&gt; 17 July 2006 &lt;/b&gt;&lt;br /&gt; Microsoft  provides a complete framework that enables third-party data mining providers to integrate the following data mining objects into Analysis Services:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Data mining algorithms, known as plug-in algorithms.  &lt;/li&gt;&lt;li&gt; Data mining viewers, known as plug-in viewers.  &lt;/li&gt;&lt;li&gt; Data Mining Web Controls Library, a library that extends data mining viewers to the Web. For more information, see &lt;a href="http://www.codeplex.com/MSFTASProdSamples/Wiki/View.aspx?title=SS2005%21Data%20Mining%20Web%20Controls%20Library&amp;amp;referringTitle=SS2005%21Readme%20for%20SQL%20Server%20Plug-In%20Algorithms"&gt;Data Mining Web Controls Library&lt;/a&gt; in SQL Server 2005 Books Online.  To help you understand how to implement data mining algorithms and viewers into Analysis Services, this readme provides instructions for the following samples:&lt;/li&gt;
&lt;/ul&gt; Data Mining Algorithm Plug-InThis sample allows data mining algorithm developers to concentrate on the algorithm instead of on the implementation issues.  Data Mining Viewer Plug-InThis sample allows third-party algorithm providers to use their own viewers to display their new discovered patterns. The documents and source code associated with each of these samples are located in the C:\Program Files\Microsoft SQL Server\90\Samples\Analysis Services\DataMining\SQL Server Data Mining Plug-In Algorithms folder. Included in this folder are tutorials that describe how to implement and use each of these samples.&lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;|  By default, the samples are not installed. To install samples, run Setup and use the &lt;b&gt;Advanced&lt;/b&gt; option as described in the topic &lt;b&gt;Running Setup to Install AdventureWorks Sample Databases and Samples&lt;/b&gt; in SQL Server 2005 Books Online. An updated version of AdventureWorks database is also available for download on the  Web page.&lt;br /&gt;      An updated version of the SQL Server 2005 Database Engine samples is also available for download on the  Web page. |&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Note:  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt;  SQL Server 2005 Business Intelligence Development Studio is not supported on computers that run the Itanium-based platform; the 64-bit development environment is supported on x64-based platforms. SQL Server 2005 samples can be modified and run on computers that run either x86 or x64-based platforms when databases used by the samples are deployed on an Itanium-based platform. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Scenario
&lt;/h3&gt;A provider wants to integrate a new data mining algorithm, which is named Pair-wise Linear Regression, into Analysis Services. After integrating this new algorithm into Analysis Services, the provider wants add a new viewer for the Pair-wise Linear Regression algorithm.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Languages
&lt;/h3&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; C++, for the algorithms.  &lt;/li&gt;&lt;li&gt; C#, for the viewer.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Features
&lt;/h3&gt; &lt;br /&gt;&lt;h5&gt;
Algorithm Plug-In
&lt;/h5&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Interface &lt;/th&gt;&lt;th&gt;  Explanation  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IDMAlgorithm&lt;/td&gt;&lt;td&gt; Implements both a model-producing learning algorithm and the prediction operations of the resulting model. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IDMAlgorithmNavigation&lt;/td&gt;&lt;td&gt; Enables browsers to access the content of your model. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IDMPersist&lt;/td&gt;&lt;td&gt; Enables the models learned by your algorithm to be saved and loaded by Analysis Services. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IDMAlgorithmMetadata&lt;/td&gt;&lt;td&gt; Describes the capabilities and input parameters of your learning algorithm. &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IDMAlgorithmFactory&lt;/td&gt;&lt;td&gt; Creates instances of the objects that implement the algorithm interface and provides Analysis Services access to the algorithm metadata interface. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h5&gt;
Viewer Plug-In
&lt;/h5&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Interface &lt;/th&gt;&lt;th&gt;  Explanation  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; IMiningModelViewerControl&lt;/td&gt;&lt;td&gt; Implements the viewer. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Prerequisites
&lt;/h3&gt;Before you run this sample, you should have the following software is installed:&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt; Microsoft SQL Server 2005, which includes the following components:  &lt;/li&gt;&lt;li&gt; SQL Server 2005 Database Engine   &lt;/li&gt;&lt;li&gt; Analysis Services   &lt;/li&gt;&lt;li&gt; SQL Server Management Studio   &lt;/li&gt;&lt;li&gt; Business Intelligence Development Studio   &lt;/li&gt;&lt;li&gt; Two sample databases—&lt;b&gt;AdventureWorksDW&lt;/b&gt; (data warehouse) and &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP)  &lt;/li&gt;&lt;li&gt; Analysis Services Samples  &lt;/li&gt;&lt;li&gt; Adventure Works DW sample Analysis Services project, deployed to an instance of Analysis Services  &lt;/li&gt;&lt;li&gt;  &lt;/li&gt;&lt;li&gt; An updated version of AdventureWorks database is also available for download on the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;SQL&amp;nbsp;Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web page.  &lt;/li&gt;&lt;li&gt; An updated version of the SQL Server 2005 Database Engine samples is also available for download on the &lt;a href="http://go.microsoft.com/fwlink/?linkid=62796" class="externalLink"&gt;SQL&amp;nbsp;Server Developer Center&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; Web page.  &lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;
Building the Samples
&lt;/h3&gt;Before building the plug-in samples, you must deploy both the &lt;b&gt;AdventureWorksDW&lt;/b&gt; (data warehouse) and &lt;b&gt;AdventureWorks&lt;/b&gt; (OLTP) databases.&lt;br /&gt; &lt;br /&gt;&lt;h6&gt;
To deploy the Adventure Works DW and AdventureWorks sample databases
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Windows Explorer, open C:\Program Files\Microsoft SQL Server\90\Tools\Samples, and then double-click the SQLServerSamples.msi file.&lt;/li&gt;&lt;li&gt;In Windows Explorer, open C:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks Analysis Services Project, open the folder corresponding to the version of SQL Server that has been installed, and then double-click the Adventure Works.sln file. The Adventure Works DW project opens in Business Intelligence Development Studio.&lt;/li&gt;&lt;li&gt;Press F5 to build and deploy the project. &lt;b&gt;Note:   Building and deploying the AdventureWorksAS project deploys the mining model to the server.&lt;/b&gt;After you deploy the databases, you can implement the algorithm and viewer plug-ins.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;&lt;h6&gt;
To implement and use the data mining algorithm plug-ins
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Windows Explorer, open C:\Program Files\Microsoft SQL Server\90\Samples\Analysis Services\DataMining\SQL Server Data Mining Plug-In Algorithms, and then double-click the SQL Server Data Mining Plug-In Algorithms Tutorial.doc file. &lt;b&gt;Note:   Implementing the plug-in sample might be easier for you if you print the tutorial and then use the printout to complete the tutorial.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;To build the Pair-wise Linear Regression Algorithm plug-in, complete Chapter 6, &amp;quot;Building a Shell Plug-In Algorithm&amp;quot; in the tutorial.&lt;/li&gt;&lt;li&gt;To customize the Pair-wise Linear Regression Algorithm plug-in, complete Chapter 7, &amp;quot;Customizing the Algorithm: Pair-wise Linear Regression&amp;quot; in the tutorial.&lt;/li&gt;&lt;li&gt;To use the customized Pair-wise Linear Regression Algorithm plug-in, complete Chapter 8, &amp;quot;Using the Customized Plug-In Algorithm&amp;quot; in the tutorial.&lt;/li&gt;
&lt;/ol&gt;&lt;h6&gt;
To implement the proprietary viewer
&lt;/h6&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;In Windows Explorer, locate C:\Program Files\Microsoft SQL Server\90\Samples\Analysis Services\DataMining\SQL Server Data Mining Plug-In Algorithms, and then double-click the SQL Server Data Mining Plug-In Viewers Tutorial.doc file. &lt;b&gt;Note:   Implementing the plug-in sample might be easier for you if you print the tutorial and then use the printout to complete the tutorial.&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Complete all steps in the tutorial.&lt;/li&gt;
&lt;/ol&gt;&lt;h3&gt;
Comments
&lt;/h3&gt;To obtain a better understanding about how to implement plug-in algorithms, read the file, SQL Server Data Mining Plug-In Algorithms Whitepaper.doc, which is included with the sample tutorials.&lt;br /&gt; &lt;br /&gt;&lt;h3&gt;
Change History
&lt;/h3&gt;  &lt;br /&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;  Release &lt;/th&gt;&lt;th&gt;  History  &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; &lt;b&gt; 17 July 2006 &lt;/b&gt;&lt;/td&gt;&lt;td&gt;  New content: Added note on availability for Itanium-based platform.  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt; &amp;#169; 2007 Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;/div&gt;</description><author>bonniefe</author><pubDate>Thu, 06 Nov 2008 23:17:45 GMT</pubDate><guid isPermaLink="false">Updated Wiki: SS2005!Readme for SQL Server Plug-In Algorithms 20081106111745P</guid></item></channel></rss>