INF: ODBC SQL Server Driver Server MessagesID: Q138539
|
This article documents how the Microsoft ODBC SQL Server Driver reports messages returned from SQL Server.
If the Microsoft ODBC SQL Server Driver receives a message from SQL
Server, it will return SQL_ERROR or SQL_SUCCESS_WITH_INFO to the ODBC
function call. If the application then calls SQLError, the driver will
return information similar to the following:
szSqlState = "37000"
pfNativeError = "170"
szErrorMsg = "[Microsoft][ODBC SQL Server Driver][SQL Server] Line 1:
Incorrect syntax near 'wheer'."
"[Microsoft][ODBC SQL Server Driver]"
This is the standard header for szErrorMsg strings coming
from the Microsoft SQL Server driver, it indicates the
error was detected in the driver itself.
"[SQL Server]"
This indicates that SQL Server is the component which issued
the message.
"Line 1: Incorrect syntax near 'driver'."
This is the actual text of the error message returned from
SQL Server.
Additional query words: sql6 windows nt err
Keywords : kbusage SSrvGen
Version : 2.5 6.0 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: April 15, 1999