32 messaggi dal 17 luglio 2001
Dove

CursorTypeEnum
Specifies the type of cursor used in a Recordset object.

adOpenDynamic
2
Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn't support them.

adOpenForwardOnly
0
Default. Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance when you need to make only one pass through a Recordset.

adOpenKeyset
1
Uses a keyset cursor. Like a dynamic cursor, except that you can't see records that other users add, although records that other users delete are inaccessible from your Recordset. Data changes by other users are still visible.

adOpenStatic
3
Uses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible.

adOpenUnspecified
-1
Does not specify the type of cursor.

ed inoltre

LockTypeEnum
Specifies the type of lock placed on records during editing.

adLockBatchOptimistic
4
Indicates optimistic batch updates. Required for batch update mode.

adLockOptimistic
3
Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Update method.

adLockPessimistic
2
Indicates pessimistic locking, record by record. The provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately after editing.

adLockReadOnly
1
Indicates read-only records. You cannot alter the data.

adLockUnspecified
-1
Does not specify a type of lock. For clones, the clone is created with the same lock type as the original.

CommandTypeEnum
Specifies how a command argument should be interpreted.

adCmdUnspecified
-1
Does not specify the command type argument.

adCmdText
1
Evaluates CommandText as a textual definition of a command or stored procedure call.

adCmdTable
2
Evaluates CommandText as a table name whose columns are all returned by an internally generated SQL query.

adCmdStoredProc
4
Evaluates CommandText as a stored procedure name.

adCmdUnknown
8
Default. Indicates that the type of command in the CommandText property is not known.

adCmdFile
256
Evaluates CommandText as the file name of a persistently stored Recordset. Used with Recordset.Open or Requery only.

adCmdTableDirect
512
Evaluates CommandText as a table name whose columns are all returned. Used with Recordset.Open or Requery only. To use the
Seek method, the Recordset must be opened with

adCmdTableDirect.
This value cannot be combined with the ExecuteOptionEnum value adAsyncExecute.

ExecuteOptionEnum
Specifies how a provider should execute a command.

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
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.

Quindi, vedi da te che hai aggiunto un parametgro in più (o quanto meno avente una semantica diversa da quella che intendevi tu).
Spero di essere stato sufficientemente esplicito !
Ciao di nuovo

54 messaggi dal 14 novembre 2001
grazie ancora!!!!!!

@ndrew

@ndrew

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.