OpenDbCommand

Syntax

OpenDbCommandResult OpenDbCommand(OdId tOb, OpenDbCommandArg tArg)

Parameters

tOb. SQL repository object moniker.

tArg. Opening parameters.

Description

The OpenDbCommand operation opens the SQL object and returns the context for working with it.

Comments

To execute the operation, in the tObject parameter specify the repository SQL object moniker, and in the tArg parameter specify parameters of it opening. SQL object is one of the following types of repository objects:

The object moniker can be obtained on executing the GetObjects operation. The tArg field may contain opening mode (view or edit), values of the parameters to be sent to request, and the pattern for extracting metadata. The pattern specifies the information to be retrieved on executing the operation. The operation results in the opened SQL object instance moniker, and also the metadata obtained according to the pattern specified in the tArg.metaGet field. Use the GetDbCommand and SetDbCommand operations to further work with the opened object. To close the opened SQL object instance, use the CloseDbCommand operation.

Example

The example of opening SQL object for edit. The request contains the repository SQL object moniker. The response contains the opened SQL object instance moniker.

SOAP

JSON

C#

See also:

Working with Relational and SQL Objects of Repository