Database Error Codes (Compact 2013)
3/26/2014
The following table describes the error codes that can be returned from a database function.
Error |
Description |
---|---|
ERROR_ACCESS_DENIED |
Indicates one of the following:
|
ERROR_ALREADY_EXISTS |
The function has succeeded, but the error returned by GetLastError indicates that OPEN_ALWAYS or CREATE_ALWAYS was specified. The database file existed before the call to this function. |
ERROR_BAD_LENGTH |
The database is too big. |
ERROR_BAD_PROVIDER |
The specified network provider name is invalid. |
ERROR_DISK_FULL |
The destination does not contain enough available space to create the new database. |
ERROR_DUP_NAME |
A database already exists with the specified name. |
ERROR_FILE_NOT_FOUND |
The tracking tables could not be found. |
ERROR_INSUFFICIENT_BUFFER |
The cchMaxName parameter does not specify a length large enough to hold the file name of the volume. |
ERROR_INTERNAL_DB_CORRUPTION |
The database is corrupted. |
ERROR_INVALID_HANDLE |
The handle is invalid. |
ERROR_INVALID_ORDINAL |
The name of the property cannot be retrieved from the database. |
ERROR_INVALID_PARAMETER |
One or more parameters are invalid. |
ERROR_KEY_DELETED |
Enumeration can only start with an invalid GUID or a mounted volume. Any other GUID fails. For example, deleting a volume, and then attempting to enumerate from the deleted volume's GUID causes this error. |
ERROR_LOCK_VIOLATION |
The process cannot access the file because another process has locked a portion of the file. |
ERROR_MOD_NOT_FOUND |
The specified module could not be found. |
ERROR_NO_MORE_FILES |
No matching files can be found. |
ERROR_NO_MORE_ITEMS |
There are no more volumes to enumerate. |
ERROR_NOT_ENOUGH_MEMORY |
Not enough memory was available to allocate a database handle. |
ERROR_NOT_FOUND |
The volume specified by the pVolGuid parameter could not be found. |
ERROR_NOT_SUPPORTED |
Too many sessions are open. |
ERROR_PATH_NOT_FOUND |
The specified path was not found. |
ERROR_SHARING_BUFFER_EXCEEDED |
Too many files are open for sharing. |
ERROR_SHARING_VIOLATION |
The LCID can only be changed if the volume is mounted once. This error occurs if there is an open handle on any database in the volume. |
ERROR_TOO_MANY_OPEN_FILES |
The system cannot open the file. |
ERROR_WRONG_PASSWORD |
Indicates that the password is incorrect. |