Article ID: 308651 - Last Review: August 31, 2005 - Revision: 4.1 How to obtain underlying provider errors by using ADO.NET in Visual C++ .NETThis article was previously published under Q308651
For a Microsoft Visual Basic .NET version of this article, see 308043
(http://support.microsoft.com/kb/308043/
)
.
For a Microsoft Visual C#
.NET version of this article, see 308650
(http://support.microsoft.com/kb/308650/
)
.
This article refers to the System::Data::OleDb namespace in the Microsoft .NET Framework Class Library. 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 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 Translations
|
Back to the top
