Select the product you need help with
How To Obtain Underlying Provider Errors by Using ADO.NET in Visual Basic .NETArticle ID: 308043 - View products that this article applies to. This article was previously published under Q308043 On This PageSUMMARY 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.REFERENCES For more information on .NET managed providers, refer to
the following MSDN Web site:
Inside .NET Managed Providers http://msdn.microsoft.com/en-us/library/ms810268.aspx
(http://msdn.microsoft.com/en-us/library/ms810268.aspx)
Properties |


Back to the top








