CDBException::m_strStateNativeOrigin

Remarks

Contains a string describing the error that caused the exception. The string is of the form “State:%s,Native:%ld,Origin:%s”, where the format codes, in order, are replaced by values that describe:

The framework interprets the error string and puts its components into m_strStateNativeOrigin; if m_strStateNativeOrigin contains information for more than one error, the errors are separated by newlines. The framework puts the alphanumeric error text into m_strError.

For additional information about the codes used to make up this string, see the ::SQLError function in the ODBC SDK Programmer’s Reference.

Example

From ODBC: “State:S0022,Native:207,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid column name ‘ColName’”

In m_strStateNativeOrigin: “State:S0022,Native:207,Origin:[Microsoft][ODBC SQL Server Driver][SQL Server]”

In m_strError: “Invalid column name ‘ColName’”

CDBException OverviewClass MembersHierarchy Chart

See Also   CDBException::m_strError