Microsoft KB Archive/273580

= HOWTO: Look Up Error Codes Related to SQL Server CE =

Article ID: 273580

Article Last Modified on 7/12/2004

-

APPLIES TO


 * Microsoft SQL Server 2000 Windows CE Edition

-



This article was previously published under Q273580



SUMMARY
A Microsoft SQL Server 2000 Windows CE application may produce a variety of error codes that originate from the ActiveX Data Objects (ADO), OLE DB, Replication, Microsoft Internet Information Server or Microsoft Internet Information Services, or Microsoft Windows programs. The SQL Server Windows CE Books Online topic about &quot;Error Codes&quot; does not document all of the possible error codes that may occur.

You can obtain a collection of major error codes that can occur when you use SQL CE (SSCE) connectivity from various sources such as:

 Microsoft Developer Network (MSDN)

 Platform Software Development Kit (SDK)

 Security

 Certificate Services and Components

 Certificate services

 Certificate Server Reference

</li> Common HRESULT Values: Provides a short table of some of the most common HRESULTs.

</li> : Provides a short table of some of the most common HRESULTs. Dataaccess31\Include\Oledberr.h: Contains the has OLEDB specific error definitions.

</li> : Provides a short table of some of the most common HRESULTs. Wininet.h: Contains hypertext transfer protocol (HTTP) or Internet specific error definitions.

</li> : Provides a short table of some of the most common HRESULTs. Winerror.h: Contains operating system (OS) specific error definitions.</li></ul>

Note that the HTTP or Internet errors in the Wininet.h file are defined from a base of 12000. SSCE returns the errors wrapped into an HRESULT.

So, for example, you can break down HRESULT 0x80072EE7, by taking the right-most 4 hexidecimal digits (2EE7) and converting them to decimal (12007). Then, look up that value in the Wininet.h file (as INTERNET_ERROR_BASE + 7). Search for the INTERNET_ERROR_BASE in the Wininet.h file.

<div class="moreinformation_section">

MORE INFORMATION
The SQL Server CE Books Online topic about &quot;Error Codes&quot; only documents native error codes. You must look for 800xxxxx errors in the Microsoft Developer Network (MSDN), Microsoft Knowledge Base articles or header files as previously described. Make sure that you add enough error handling code to your application to retrieve the error descriptions as described in the SQL Server CE Books Online topic about &quot;Error Handling&quot;.

<div class="references_section">