INF: SET SHOWLPLAN and the MS SQL Server ODBC DriverID: Q140695
|
This article discusses how the Microsoft SQL Server ODBC Driver returns SET SHOWPLAN data to an application.
SET SHOWPLAN is a proprietary Transact-SQL command for Microsoft SQL Server
that can be used to obtain information about the execution plans that SQL
Server builds for SQL statements. When this option is turned on in an ODBC
environment:
SQLExecDirect(hstmt, "SET SHOWPLAN ON", SQL_NTS);
szSqlState="01000", *pfNativeError=6223,
szErrorMsg="[Microsoft][ODBC SQL Server Driver][SQL Server] Table Scan"
Additional query words: sql6 odbc debug
Keywords : kbenv kbinterop SSrvGen SSrvLAN
Version : 6.0 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: March 23, 1999