Article ID: 308043 - View products that this article applies to.
This article was previously published under Q308043
Managed providers can raise several exceptions. To obtain more detailed information about the cause, you need access to provider-specific error information. This article dicusses how to obtain the underlying provider errors when using ADO.NET in Visual Basic .NET.
RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that you need:
Steps to Obtain Underlying Provider ErrorsTo obtain more detailed information about the cause of an exception, wrap your code in a try-catch block, catch the exception, and process the Errors collection from the OleDbException class.
TroubleshootingIf you have a server named "MyWrongServerName," you may not receive an error.
For more information on .NET managed providers, refer to the following MSDN Web site:
Inside .NET Managed Providers
Article ID: 308043 - Last Review: July 15, 2004 - Revision: 2.3