Edition (clsServer)

ms133415.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The Edition property of an object of ClassType clsServer identifies which edition of Microsoft® SQL Server™ 2000 Analysis Services is installed.

Data Type

OlapEditions

Access

Read-only

备注

The functionality of Analysis Services varies depending on the edition installed.

示例

The following code example checks the Edition property of a clsServer object to determine feature support.

Dim dsoServer As New DSO.Server

' Connect to the local Analysis server.
dsoServer.Connect "LocalHost"

' Check the Edition property.
Select Case dsoServer.Edition
    Case olapEditionUnlimited
        ' Insert code for Enterprise Edition features.
    Case olapEditionPivotOnly
        ' Reserved for future use.
    Case olapEditionNoPartitions
        ' Insert code for Standard Edition features.
    Case olapEditionError
        ' An error occurred while retrieving this information.
End Select

请参阅

参考

clsServer

帮助和信息

获取 SQL Server 2005 帮助