Article ID: 308651 - View products that this article applies to.
This article was previously published under Q308651
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.
Contact us for more help
Connect with Answer Desk for expert help.