Export (0) Print
Expand All

Readme for AMOBrowser Sample

SQL Server 2005

Updated: 17 July 2006

The AMOBrowser sample lets you use Analysis Management Objects (AMO) objects to connect to a Microsoft SQL Server 2005 Analysis Services (SSAS) server, and then browse different AMO objects and their properties.

AMOBrowser uses a TreeView to display the AMO hierarchy and a PropertyGrid to display the properties of a selected object.

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.

The Analysis Services sample uses the following items.

Application area Features

AMOAdventureWorks

AMO Objects

Before you run this sample, you should have the following software installed:

After your sample has been successfully compiled, you will have to access one of the Analysis Services databases to test your program. We recommend that you use the AdventureWorks sample database that is provided with SQL Server 2005.

ms160930.note(en-US,SQL.90).gifNote:
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.

If you have not already created a strong name key file, generate the key file using the following instructions.

  1. Open a Microsoft Visual Studio 2005 command prompt. Click Start, point to All Programs, point to Microsoft .NET Framework SDK 2.0, and then click SDK Command Prompt.

    -- or --

    Open a Microsoft .NET Framework command prompt. Click Start, point to All Programs, point to Microsoft .NET Framework SDK 2.0, and then click SDK Command Prompt.

  2. Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed.
    ms160930.note(en-US,SQL.90).gifNote:
    To determine the folder where samples are located, click the Start button, point to All Programs, point to Microsoft SQL Server, point to Documentation and Tutorials, and then click Samples Directory. If the default installation location was used, the samples are located in <system_drive>:\Program Files\Microsoft SQL Server\100\Samples.
  3. At the command prompt, run the following command to generate the key file:

    sn -k SampleKey.snk

    ms160930.note(en-US,SQL.90).gifImportant:
    For more information about the strong-name key pair, see "Security Briefs: Strong Names and Security in the .NET Framework" in the .NET Development Center on MSDN.

  • Build the sample by using Visual Studio 2005 and the provided Visual Studio solution.

    — or —

    Build the sample by using Microsoft MSBuild, which is included in the .NET Framework SDK 2.0, and executing a command similar to the following at a command prompt:

    msbuild /nologo /verbosity:quiet /property:Configuration=Debug CS/AmoBrowser.sln

  • In Visual Studio 2005, press F5.

    — or —

    In Visual Studio 2005, on the Debug menu, click Start.

    — or —

    At a command prompt, run a command similar to the following path:

    CS\AmoBrowser\bin\Debug\AmoBrowser.exe

Release History

17 July 2006

Updated content:
  • Note added: SQL Server 2005 Business Intelligence Development Studio is not supported on computers that run the Itanium-based platform.

5 December 2005

New content:
  • Added Building the Sample and Running the Sample sections.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft