contents   index   previous   next



Database majorErrorMessage()

syntax:

database.majorErrorMessage()

return:

variable - the result returned by this method varies depending on the database server being used, but contains an error message explaining 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 message indicating the reason for failure. Use this method to fetch that error message.

 

see:

#link <sedbc>, Database majorErrorCode(), Database minorErrorCode(), Database minorErrorMessage()

 

example:

errMessage = db.majorErrorMessage();

 


Database minorErrorCode()