AMOBrowser 예제 추가 정보

[이 항목은 시험판 문서이며 이후 릴리스에서 변경될 수 있습니다. 빈 항목은 자리 표시자로 포함됩니다.]

이 예제는 SQL Server 2005 및 SQL Server 2008에서만 작동합니다. SQL Server 2005 이전 버전에서는 작동하지 않습니다.

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.

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

Scenario

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.

Languages

C#

Features

The Analysis Services sample uses the following items:

Application area Features

AMOAdventureWorks

AMO Objects

Prerequisites

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

  • .NET Framework SDK 2.0 or Microsoft Visual Studio 2005.
    You can obtain .NET Framework SDK free of charge. For more information, see Installing the .NET Framework SDK in SQL Server Books Online.

  • Analysis Services

  • Business Intelligence Development Studio

    참고

    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.

  • The AdventureWorks AS database.
    You can download this sample database from the Microsoft SQL Server Samples and Community Projects Web site at http://www.codepex.com/sqlserversamples. For more information about how to download and install sample databases, see Installing SQL Server Samples and Sample Databases in SQL Server Books Online.

  • The AMOBrowser sample.
    You can download this sample from the Microsoft SQL Server Samples and Community Projects web site. For more information about how to download and install samples, see Installing SQL Server Samples and Sample Databases 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 AdventureWorks sample database that is provided with SQL Server.

Building the Sample

강력한 이름 키 파일을 생성하지 않았다면 다음 지침에 따라 해당 키 파일을 생성합니다.

강력한 이름 키 파일을 생성하려면

  1. Microsoft Visual Studio 2005 명령 프롬프트를 엽니다. 시작을 클릭하고 모든 프로그램, Microsoft .NET Framework SDK 2.0을 차례로 가리킨 다음 SDK 명령 프롬프트를 클릭합니다.

    -- 또는--

    Microsoft .NET Framework 명령 프롬프트를 엽니다. 시작을 클릭하고 모든 프로그램, Microsoft .NET Framework SDK 2.0을 차례로 가리킨 다음 SDK 명령 프롬프트를 클릭합니다.

  2. 디렉터리 변경 명령(CD)을 사용하여 명령 프롬프트 창의 현재 디렉터리를 예제가 설치된 폴더로 변경합니다.

    참고

    예제가 있는 폴더를 확인하려면 시작 단추를 클릭하고 모든 프로그램, Microsoft SQL Server, 설명서 및 자습서를 차례로 가리킨 다음 예제 디렉터리를 클릭합니다. 기본 설치 위치가 사용된 경우 예제는 <system_drive>:\Program Files\Microsoft SQL Server\100\Samples에 있습니다.

  3. 명령 프롬프트에서 다음 명령을 실행하여 키 파일을 생성합니다.

    sn -k SampleKey.snk

    중요

    강력한 이름 키 쌍에 대한 자세한 내용은 MSDN의 .NET Development Center에서 "Security Briefs: Strong Names and Security in the .NET Framework"를 참조하십시오.

To build the AMOBrowser sample

  • 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

Running the Sample

To run the AMOBrowser sample

  • 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

참고 항목

태스크

DisplayObjectNames 예제 추가 정보

개념

Analysis Services Multidimensional Database Samples

도움말 및 정보

SQL Server 2008 지원 받기