Mode Property - ADO

Indicates the available permissions for modifying data in a Connection.

Applies To

Connection

Required Files

msado15.dll
VC: adoint.h, adoid.h

Settings and Return Values

Sets or returns one of the following ConnectModeEnum values:

Constant Value Description
adModeUnknown 0 The permissions have not yet been set or cannot be determined. (Default.)
adModeRead 1 Read-only permissions.
adModeWrite 2 Write-only permissions.
adModeReadWrite 3 Read/write permissions.
adModeShareDenyRead 4 Prevents others from opening connection with read permissions.
adModeShareDenyWrite 8 Prevents others from opening connection with write permissions.
adModeShareExclusive 12 Prevents others from opening connection with read/write permissions.
adModeShareDenyNone 16 Prevents others from opening connection with any permissions.

Remarks

Use the Mode property to set or return the access permissions in use by the provider on the current connection. You can set the Mode property only when the Connection object is closed.

Examples

IsolationLevel, Mode Properties Example (VB)

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.