bool CloseDbCommand(DbCommandId tDbCommand)
tDbCommand. SQL repository object moniker.
The CloseDbCommand operation closes the opened SQL object instance.
To execute the operation, in the tDbCommand field specify the moniker of the SQL object instance to be closed. The moniker can be obtained on executing the OpenDbCommand operation. The operation results in the logical True if the object was closed successfully.
The example of closing the SQL instance. The request contains SQL object moniker. The response returns whether the closing is successful.
{
"CloseDbCommand" :
{
"tDbCommand" :
{
"id" : "S1!M!S!M1"
}
}
}
{
"CloseDbCommandResult" : "1"
}
public static bool CloseSQLObject(DbCommandId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseDbCommand()
{
tDbCommand = moniker
};
//Close SQL object instance
var b = somClient.CloseDbCommand(tClose);
return b;
}
See also: