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.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public sealed class Server : MajorObject, 
	IMajorObject, INamedComponent, IModelComponent, IComponent, IDisposable, 

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.

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
// An error will be raised if the connection attempt fails
// Your code goes here
// DisConnect to the local instance of Analysis Services

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

Community Additions