This section describes Jet-specific implementation of the ICommand interfaces. This includes ICommand::Cancel, ICommand::Execute, and ICommand::GetDBSession.
ICommand contains methods to execute commands. A command can be executed many times and the parameter values can vary.
A command object contains a single text command, which is specified through ICommandText.
Method | Description |
Cancel | Cancels the current command execution. |
Execute | Executes the command. |
GetDBSession | Returns an interface pointer to the session that created the command. |
Cancels the current command execution. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.
Executes the command. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.
Note If the user does not specify any properties with ICommandProperties::SetProperties, then the default rowset is a forward-only snapshot. To alter this default behavior, see the section on ICommandProperties. To see a comprehensive list of supported properties, see Appendix A.
Returns an interface pointer to the session that created the command. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.