Redigera

Dela via


ExecuteOptionEnum

Specifies how a provider should execute a command.

Constant Value Description
adAsyncExecute 0x10 Indicates that the command should execute asynchronously.

This value cannot be combined with the CommandTypeEnum value adCmdTableDirect.
adAsyncFetch 0x20 Indicates that the remaining rows after the initial quantity specified in the CacheSize property should be retrieved asynchronously.
adAsyncFetchNonBlocking 0x40 Indicates that the main thread never blocks while retrieving. If the requested row has not been retrieved, the current row automatically moves to the end of the file.

If you open a Recordset from a Stream containing a persistently stored Recordset, adAsyncFetchNonBlocking will not have an effect; the operation will be synchronous and blocking.

adAsynchFetchNonBlocking has no effect when the adCmdTableDirect option is used to open the Recordset.
adExecuteNoRecords 0x80 Indicates that the command text is a command or stored procedure that does not return rows (for example, a command that only inserts data). If any rows are retrieved, they are discarded and not returned.

adExecuteNoRecords can only be passed as an optional parameter to the Command or Connection Execute method.
adExecuteStream 0x400 Indicates that the results of a command execution should be returned as a stream.

adExecuteStream can only be passed as an optional parameter to the Command Execute method.
adExecuteRecord 0x800 Indicates that the CommandText is a command or stored procedure that returns a single row which should be returned as a Record object.
adOptionUnspecified -1 Indicates that the command is unspecified.

ADO/WFC Equivalent

Package: com.ms.wfc.data

Constant
AdoEnums.ExecuteOption.ASYNCEXECUTE
AdoEnums.ExecuteOption.ASYNCFETCH
AdoEnums.ExecuteOption.ASYNCFETCHNONBLOCKING
AdoEnums.ExecuteOption.NORECORDS
AdoEnums.ExecuteOption.UNSPECIFIED

Applies To