다음을 통해 공유


Server Class

Represents an instance of Microsoft SQL Server 2005 Analysis Services(SSAS) and provides methods and members that enable to you to control that instance. This class cannot be inherited.

네임스페이스: Microsoft.AnalysisServices
어셈블리: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

구문

‘선언
<XmlRootAttribute(Namespace:="https://schemas.microsoft.com/analysisservices/2003/engine")> _
<GuidAttribute("554BBCA3-925F-4797-9460-2421A8CD7030")> _
Public NotInheritable Class Server
    Inherits MajorObject
    Implements IMajorObject, INamedComponent, IModelComponent, IComponent, _
    IDisposable, ICloneable
[XmlRootAttribute(Namespace="https://schemas.microsoft.com/analysisservices/2003/engine")] 
[GuidAttribute("554BBCA3-925F-4797-9460-2421A8CD7030")] 
public sealed class Server : MajorObject, IMajorObject, INamedComponent, IModelComponent, 
    IComponent, IDisposable, ICloneable
[XmlRootAttribute(Namespace=L"https://schemas.microsoft.com/analysisservices/2003/engine")] 
[GuidAttribute(L"554BBCA3-925F-4797-9460-2421A8CD7030")] 
public ref class Server sealed : public MajorObject, IMajorObject, INamedComponent, IModelComponent, 
    IComponent, IDisposable, ICloneable
/** @attribute XmlRootAttribute(Namespace="https://schemas.microsoft.com/analysisservices/2003/engine") */ 
/** @attribute GuidAttribute("554BBCA3-925F-4797-9460-2421A8CD7030") */ 
public final class Server extends MajorObject implements IMajorObject, INamedComponent, 
    IModelComponent, IComponent, IDisposable, ICloneable
XmlRootAttribute(Namespace="https://schemas.microsoft.com/analysisservices/2003/engine") 
GuidAttribute("554BBCA3-925F-4797-9460-2421A8CD7030") 
public final class Server extends MajorObject implements IMajorObject, INamedComponent, 
    IModelComponent, IComponent, IDisposable, ICloneable

주의

This object is the root object for the entire Analysis Management Objects (AMO) object model tree. With an object of ClassType Server you can:

  • Connect to a computer on which an instance of Analysis Services is running.

  • Connect (create a session) and disconnect (end session context) to an instance of Analysis Services.

  • Capture XML message logs of command traffic to Analysis Services.

  • Identify the product edition and product level.

  • Execute requests to create other Analysis Services objects, such as databases, data sources, commands, dimensions, cubes, data mining models, and roles.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       Microsoft.AnalysisServices.ModelComponent
         Microsoft.AnalysisServices.NamedComponent
           Microsoft.AnalysisServices.MajorObject
            Microsoft.AnalysisServices.Server

The following code creates and initializes an instance of Analysis Services. "LocalHost" specifies the instance running on the same computer as your AMO application.

// Create instance of Analysis Services object
Server myServer = new Server();
// Connect to local instance of Analysis Services
myServer.Connect("LocalHost");
// An error will be raised if the connection attempt fails
// Your code goes here
// DisConnect to the local instance of Analysis Services
myServer.DisConnect();

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Server Members
Microsoft.AnalysisServices Namespace