Article ID: 308650 - Last Review: July 15, 2004 - Revision: 3.4 How To Obtain Underlying Provider Errors by Using ADO.NET in Visual C# .NETThis article was previously published under Q308650 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. 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
Fore 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) | Article Translations
|
Back to the top
