You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mfc/reference/cdbexception-class.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -118,19 +118,19 @@ Contains a string describing the error that caused the exception.
118
118
119
119
The string is of the form "State:%s,Native:%ld,Origin:%s", where the format codes, in order, are replaced by values that describe:
120
120
121
-
- The SQLSTATE, a null-terminated string containing a five-character error code returned in the *szSqlState* parameter of the ODBC function `SQLError`. SQLSTATE values are listed in Appendix A, [ODBC Error Codes](/previous-versions/windows/desktop/ms714687(v=vs.85)), in the *ODBC Programmer's Reference*. Example: "S0022".
121
+
- The SQLSTATE, a null-terminated string containing a five-character error code returned in the *szSqlState* parameter of the ODBC function `SQLError`. SQLSTATE values are listed in Appendix A, [ODBC Error Codes](/sql/odbc/reference/appendixes/appendix-a-odbc-error-codes), in the *ODBC Programmer's Reference*. Example: "S0022".
122
122
123
123
- The native error code, specific to the data source, returned in the *pfNativeError* parameter of the `SQLError` function. Example: 207.
124
124
125
125
- The error message text returned in the *szErrorMsg* parameter of the `SQLError` function. This message consists of several bracketed names. As an error is passed from its source to the user, each ODBC component (data source, driver, Driver Manager) appends its own name. This information helps to pinpoint the origin of the error. Example: [Microsoft][ODBC SQL Server Driver][SQL Server]
126
126
127
127
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`.
128
128
129
-
For additional information about the codes used to make up this string, see the [SQLError](/previous-versions/windows/desktop/ms716312(v=vs.85)) function in the *ODBC Programmer's Reference*.
129
+
For additional information about the codes used to make up this string, see the [SQLError](/sql/odbc/reference/syntax/sqlerror-function) function in the *ODBC Programmer's Reference*.
130
130
131
131
### Example
132
132
133
-
From ODBC: "State:S0022,Native:207,Origin:\[Microsoft]\[ODBC SQL Server Driver]\[SQL Server] Invalid column name 'ColName'"
133
+
From ODBC: "State:S0022,Native:207,Origin:\[Microsoft]\[ODBC SQL Server Driver]\[SQL Server] Invalid column name 'ColName'"
134
134
135
135
In `m_strStateNativeOrigin`: "State:S0022,Native:207,Origin:\[Microsoft]\[ODBC SQL Server Driver]\[SQL Server]"
0 commit comments