PRB: Attempting to Open Connection with Non-Existent Provider May Succeed (245388)
The information in this article applies to:
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
This article was previously published under Q245388 SYMPTOMS
While opening a Connection, attempting to specify a non-existent OLE DB provider through the Provider property does not generate an error if the correct provider was previously specified in the ConnectionString argument.
CAUSE
ADO does not recompose the connection string whenever the Provider property is set after specifying the provider in ConnectionString.
The following warning can be found under the Provider Property documentation:
"...; however, specifying a provider in more than one place while calling the Open method can have unpredictable results.... ".
NOTE: Previous versions of MDAC components can also exhibit this behavior.
RESOLUTION
Specify the OLE DB provider in only one place before opening your Connection object, preferably via the ConnectionString argument.
STATUS
This behavior is by design.
REFERENCES
For more information, please refer to the Platform SDK for Windows 2000.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbprb KB245388 |
---|
|