FIX: DB_E_ERRORSOCCURRED from Jet Provider During OpenDataSource (223180)
The information in this article applies to:
- Microsoft Visual Studio 6.0 SP3
- Microsoft OLE DB Provider for Jet 4.0
This article was previously published under Q223180 SYMPTOMS
When using the Jet OLE DB Provider 4.0 with a Wizard-generated Active Template Library (ATL) OLE DB Consumer template class, a call to the Open or OpenDataSource method returns an HRESULT of DB_E_ERRORSOCCURRED.
CAUSE
The ATL OLE DB Consumer Wizard generates an OpenDataSource method that includes DBPROP_PERSIST_SENSITIVE_AUTHINFO as one of the initialization properties for the provider. The Jet OLE DB Provider 4.0 is not designed to accept this property and returns an HRESULT of DB_E_ERRORSOCCURRED.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Modification Type: | Major | Last Reviewed: | 7/19/2001 |
---|
Keywords: | kbbug kbConsumer kbDatabase kbJET kbVS600sp3fix KB223180 |
---|
|