RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SqlStateCode Class

Provides the possible values of the SQLState property of a SQLException raised by Blackfish SQL.

Pascal
SqlStateCode = class;
C++
class SqlStateCode;

SqlStateCode.cs

Provides the possible values of the SQLState property of a SQLException raised by Blackfish SQL.  

Each value is a 5 character error code defined in the SQL92 standard. The first 2 characters are an error class value, and the latter 3 characters are a subclass error value.  

This table lists the possible error class values (the first two characters in the error code):

Error Class 
Description 
02  
No data.  
08  
Connection error.  
0A  
Feature not supported.  
21  
Cardinality violation.  
22  
Data exception.  
24  
Invalid cursor state.  
42  
Syntax or access violation.  
44  
Check option violation.  
HZ  
Remote database access error.  
IM  
Non standard error class.  

 

This table lists the 5–character SQL error codes:

Constant 
Description 
Query has no result set.  
SQL connection could not be made.  
SQL connection was never made or was previously closed.  
SQL connection rejected by server.  
General connection error.  
Feature not supported.  
Cardinality error.  
General data exception.  
String data with too many chars/bytes.  
Numeric value out of range.  
Value could not be casted to target type.  
Malformed date/time value.  
SUBSTRING error.  
Divide by zero error.  
Invalid escape character in LIKE operator.  
Invalid parameter.  
Invalid LIKE pattern.  
TRIM error.  
Integrity constraint violation.  
Invalid cursor state.  
Syntax or access violation.  
With check option violation.  
Unknown protocol request encountered.  
Network protocol error.  
Network protocol version mismatch.  
General error category.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!