Raised when a component receives an OLE DB error.
For a list of all members of this type, see EOLEDBError members.
EOLEDBError = class(EDAError);
EOLEDBError is raised when a component receives an OLE DB error. Use EOLEDBError in the exception-handling block.
If several errors happen during execution of the same SQL statement, all these errors are stored into the Errors property. For example, if the following query will be executed:
'SELECT WrongField1, WrongField2 FROM Northwind..Orders'
ErrorCount equals to 2 and the Errors property contains two errors ('Invalid column name 'WrongField1'.' and 'Invalid column name 'WrongField2'.').
Keep in mind, if MSConnection.Connect was called from another thread than this event, the text of the message can be incomplete.