OLEDBError.SqlState Property (Excel)
Returns the SQL state error. Read-only String.
Syntax
expression .SqlState
expression A variable that represents an OLEDBError object.
Remarks
For an explanation of the specific error, see you SQL documentation.