PRB: Open Record Fails When Specifying URL as Active Connection (245390)
The information in this article applies to:
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q245390 SYMPTOMS
When you try to open a record object with a URL specified as the active connection, you might get the following error:
Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
CAUSE
ADO did not interpret the specified URL as a valid connection string. Since the active connection did not specify any provider, ADO prompts the OLE DB provider for ODBC (MSDASQL), that is the default provider, for more information about the Data Source.
RESOLUTION
Make sure you specify the "URL=" keyword in your source parameter. This lets ADO open the record with the specified URL over which all subsequent record operations apply.
STATUS
This behavior is by design.
REFERENCES
For more information on the Record object, please refer to the Platform SDK or to the MSDN Library online.
Modification Type: | Minor | Last Reviewed: | 9/17/2003 |
---|
Keywords: | kbprb KB245390 |
---|
|