Enum MsAccessErrorCode
Error codes for Microsoft Access database provider.
Namespace: Kros.Data.MsAccess
Assembly: Kros.Utils.MsAccess.dll
Syntax
public enum MsAccessErrorCode
Remarks
The error code is in the exception System.Data.OleDb.OleDbException in the System.Data.OleDb.OleDbError.SQLState property. The list of all error codes is at https://msdn.microsoft.com/en-us/library/bb221208(v=office.12).aspx.
Fields
Name | Description |
---|---|
CannotFindTableOrQuery | The Microsoft Jet database engine cannot find the input table or query 'name'. Make sure it exists and that its name is spelled correctly. |
CannotOpenDatabaseFileIsInvalid | Cannot open database 'name'. It may not be a database that your application recognizes, or the file may be corrupt. |
CannotOpenDatabaseIsLocked | The Microsoft Jet database engine cannot open the file 'name'. It is already opened exclusively by another user, or you need permission to view its data. |
CouldNotReadRecordIsLocked | Could not read the record; currently locked by another user. |
CouldNotUpdateCurrentlyLocked | Could not update; currently locked. |
CouldNotUseFileAlreadyInUse | Could not use <name>; file already in use. |
DatabaseAlreadyOpenedExclusively | You attempted to open a database that is already opened exclusively by user 'userName' on machine 'machineName'. Try again when the database is available. |
KeyDuplicity | The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again. |
RelationshipViolation | You cannot add or change a record because a related record is required in table 'name'. |
Unknown | Unknown error. |