Skip to content

Commit 1eeb799

Browse files
author
Colin Robertson
committed
Fix broken links to ODBC reference
1 parent de9759f commit 1eeb799

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/mfc/reference/cdbexception-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@ Contains a string describing the error that caused the exception.
118118

119119
The string is of the form "State:%s,Native:%ld,Origin:%s", where the format codes, in order, are replaced by values that describe:
120120

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".
122122

123123
- The native error code, specific to the data source, returned in the *pfNativeError* parameter of the `SQLError` function. Example: 207.
124124

125125
- 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]
126126

127127
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`.
128128

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*.
130130

131131
### Example
132132

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'"
134134

135135
In `m_strStateNativeOrigin`: "State:S0022,Native:207,Origin:\[Microsoft]\[ODBC SQL Server Driver]\[SQL Server]"
136136

0 commit comments

Comments
 (0)