The following categories of errors can be generated from SQL Server for SQL Server Compact 3.5.

Category

Range

Engine errors

25000-25499

Replication Transport errors

28000-28499

Client Agent errors

28500-28999

Server Agent errors

29000-29499

Message Protocol errors

29500-29999

Query Processor errors

25500-26499

OLEDB errors

0x80040E00L-0x00040EDDL

When SQL Server Compact 3.5 returns an error, use the native number of the error to look up an error description in the tables listed. Parameters are also listed in these tables.

Note Although parameters might exist for an error, not all occurrences of the error will return parameters. If you are looking for other HRESULT errors, see Oledberr.h, Winerror.h and Wininet.h that are included with Microsoft Visual Studio. You can also see OLEDB Errors. For more information about HRESULT values, search the MSDN Library or the Microsoft Knowledge Base.