Database majorErrorCode()
syntax: |
database.majorErrorCode() |
return: |
variable - the result returned by this method varies depending on the database server being used, but contains an error code indicating why the most recent database activity failed.
|
description: |
SQL statements can fail for a variety of reasons, including referential integrity constraints, lack of user privileges, record or table locking in a multiuser database, and so on. When an action fails, the database server returns an error code indicating the reason for failure. Use this method to fetch that error code.
|
see: |
#link <sedbc>, Database majorErrorMessage(), Database minorErrorCode(), Database minorErrorMessage()
|
example: |
errCode = db.majorErrorCode(); |