Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

clsDatabaseCommand

SQL Server 2000

clsDatabaseCommand

An object of ClassType clsDatabaseCommand provides a specific implementation of the Decision Support Objects (DSO) Command interface. This object provides collections, methods, and properties through the Command interface.

Remarks

An object of ClassType clsDatabaseCommand encapsulates a user-defined command that is automatically executed on the Microsoft® SQL Server™ 2000 Analysis Services client when the database containing the command is accessed. You add a command to a database by adding it to the database's Commands collection. Such commands include calculated members, named sets, library references, and others.

Example

Use the following code to create an object of ClassType clsDatabaseCommand:

'Assume an object (dsoServer) of ClassType clsServer exists
'with an existing database
Dim dsoDB As DSO.MDStore      'Database
Dim dsoCmd As DSO.Command   'Command

Set dsoDB = dsoServer.MDStores(1)
Set dsoCmd = dsoDB.Commands.AddNew("DBCmd1")

See Also

Collections, clsDatabaseCommand

Command Interface

Commands

Methods, clsDatabaseCommand

Properties, clsDatabaseCommand

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.