ClassType (Command Interface)

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

The ClassType property of the Command interface contains an enumeration constant that identifies the class designation in the Decision Support Objects (DSO) object model.

Applies To: clsCubeCommandclsDatabaseCommand, clsRoleCommand

Data Type

ClassTypes

Access

Read-only

示例

Use the following code to return the class type of a command object and determine which object class has been returned:

'Assume an object (dsoCommand) of ClassType clsCommand exists.
Dim enuClassType As DSO.ClassTypes
enuClassType = dsoCommand.ClassType
Select Case enuClassType
    Case clsDatabaseCommand
        ' Insert code for a database command.
    Case clsCubeCommand
        ' Insert code for a cube command.
    Case clsRoleCommand
        ' Insert code for a role command
    Case Else
        ' Insert code for when this is not a command object.
End Select

请参阅

参考

Command Interface

帮助和信息

获取 SQL Server 2005 帮助