Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following table specifies generic keys that can be used in a connection string.<1> When an OLE DB provider does not support a given generic key or if the key has an invalid value, the behavior of the OLE DB provider is provider-specific.<2>
Key |
Meaning |
---|---|
Provider |
Specifies the name of the OLE DB provider.<3> |
Cache Authentication |
Specifies whether authentication information can be stored in a cache of the OLE DB provider. The valid values are "true" and "false". |
Encrypt Password |
Specifies whether the password is encrypted before it is sent to the data source. The valid values are "true" and "false". |
Integrated Security |
Specifies the name of the Authentication Service (AS) that the data source uses to identify the user who is using the identity that is provided by an authentication domain.<4> |
Mask Password |
Specifies whether the password cannot be sent to the data source in plaintext. The valid values are "true" and "false". |
Password |
Specifies the password to be used when connecting to the data source. |
Persist Encrypted |
Specifies whether the OLE DB consumer requests authentication information to be encrypted if the connection string is persisted.<5> The valid values are "true" and "false". |
Persist Security Info |
Specifies whether authentication information can be persisted by the OLE DB provider. The valid values are "true" and "false". |
User ID |
Specifies the user ID to be used when connecting to the data source. |
Asynchronous Processing |
Specifies the asynchronous processing operations that the OLE DB consumer requests to be performed on the data source object. This key can have a compound value. Only the following value component is valid: "Initialize": Specifies that the data source object is initialized asynchronously.<6> The corresponding numeric value is 0x1. |
Bind Flags |
Reserved. This key MUST NOT be used. |
Initial Catalog |
Specifies the name of the database to be used after the connection is established. |
Data Source |
Specifies the name of the data source to which to connect.<7> |
General Timeout |
Specifies the number of seconds before a request for a data source object times out. The valid values are signed integers that range from greater than or equal to -2147483648 to less than or equal to 2147483647. |
Window Handle |
Specifies the element of a graphical user interface that a provider can use to prompt for additional connection information. The valid values are signed integers that range from greater than or equal to -2147483648 to less than or equal to 2147483647 on a 32-bit platform and that range from greater than or equal to -9223372036854775808 to less than or equal to 9223372036854775807 on a 64-bit platform. |
Impersonation Level |
Specifies the OLE DB consumer-requested impersonation level that is to be used by the data source when it is impersonating the data source object. For more information about impersonation levels, see [MSDN-CDIM]. The valid values are the following:
|
Locale Identifier |
Specifies the language code identifier (LCID) to be sent to the data source.<8> The valid values are an LCID or one of the following predefined literals:
|
Location |
|
Lock Owner |
Reserved. This key MUST NOT be used. |
Mode |
Specifies the mode in which the OLE DB consumer requests to open the data source. This key can have a compound value. The valid value components are the following:
|
OLE DB Services |
Specifies the services that the OLE DB consumer requests the OLE DB Services component to enable or disable for the data source object. For more information about OLE DB Services, see [MSDN-ODBS]. This key can have a compound value. The valid value components are the following:
|
Prompt |
Specifies the OLE DB consumer-requested level of prompting for connection information during initialization of a data source object. The connection information that is required is provider-specific. The valid values are the following:
|
Protection Level |
Specifies the OLE DB consumer-requested level of protection for the data that is sent between a data source object and a data source. This key applies only to network connections other than remote procedure call (RPC) connections. The valid values are the following:
|
Extended Properties |
Specifies provider-specific extended connection information. |
Connect Timeout |
Specifies the amount of time, in seconds, to wait for a connection to complete. The valid values are signed integers that range from greater than or equal to -2147483648 to less than or equal to 2147483647. |