Article ID: 308651 - View products that this article applies to.
This article was previously published under Q308651
This article has been archived. It is offered "as is" and will no longer be updated.
For a Microsoft Visual Basic .NET version of this article, see 308043
For a Microsoft Visual C# .NET version of this article, see 308650
This article refers to the System::Data::OleDb namespace in the Microsoft .NET Framework Class Library.
Managed providers can raise several exceptions. To obtain more detailed information about the cause, you need access to provider-specific error information. This article shows how to gather this information.
RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that are required:
Technique descriptionYou must wrap your code in a "try... catch" block to catch the exception and process the error collection from the OLEDBException.
Create project and add code
TroubleshootingIf you have a server called "MyWrongServerName", you may not get an error message.
Article ID: 308651 - Last Review: January 16, 2015 - Revision: 4.1