J.1. Connection.Execute Method Options

The following tables list the values you can specify for the Command.Execute method's options argument.

J.1.1. CommandTypeEnum Values

The CommandTypeEnum values specify how the Connection.CommandText argument is to be interpreted.

ConstantValueDescription
AdCmdUnspecified−1Hidden. No command type is specified.
AdCmdText1The CommandText argument is a command or the name of a stored procedure.
AdCmdTable2The CommandText argument is the name of a table.
AdCmdStoredProc4The CommandText argument is the name of a stored procedure.
AdCmdUnknown8Default. The type of command in the CommandType argument is unknown.
AdCmdFile256The CommandText argument is the name of a stored Recordset (Recordset.Open or Requery methods only).
AdCmdTableDirect512The CommandText argument is the name of a table (Recordset.Open or Requery methods only). This option cannot be combined with adAsyncExecute.

J.1.2. ExecuteOptionEnum Values

The ExecuteOptionEnum values specify how the provider is to execute the Connection.CommandText argument.

ConstantValueDescription
AdOptionUnspecified−1Hidden. The command is not specified.
AdAsyncExecute16The command executes asynchronously. This option cannot be combined with adCmdTableDirect.
AdAsyncFetch32The rows that remain to be retrieved after those specified by the CacheSize property are to be retrieved asynchronously.
AdAsyncFetchNonBlocking64The main thread never blocks while retrieving data, so if the requested row has not been retrieved, the current row automatically moves to the end of the file.
  This setting is ignored if the adCmdTableDirect option is used, or if you open a recordset from a stream that contains a persistently stored recordset.
AdExecuteNoRecords128The CommandText argument is a command or stored procedure that does not return records.
AdExecuteStream1024Return the results of a command operation as a Stream (Command.Execute only).
AdExecuteRecord2048Hidden. The CommandText argument is a command or stored procedure that returns a single row as a Record object.

Note: For information about how to view hidden objects in the Object Browser, refer to Chapter 2.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.175.21