HSTMT、UCHAR、SDWORD在ODBC日志中的含义
HSTMT, UCHAR, SDWORD meaning in ODBC Log
我的 ODBC 日志中有以下行:
(场景:pgAdmin4,在另一个名为系统管理的应用程序中通过 ODBC32 使用 PostgreSQL 服务器)
System Admi 6a0-6f8 ENTER SQLExecDirect
HSTMT 0x00630718
UCHAR * 0x036B29C0 [ 63] "create table new (npages integer, ifnds integer, ifnid integer)"
SDWORD 63
我需要知道 HSTMT
、UCHAR*
和 SDWORD
的含义。旁边的数字是什么意思?
这是ODBC tracing的记录
有一个过程 "SQLExecDirect",语句句柄为 0x00630718,文本参数(作为指针传递)是 "create table ...",最后一个参数是文本大小(作为字类型传递)。请参阅 MSDOC 中的相关 reply。
HSTMT
、UCHAR
、SDWORDS
是 C、C++ MS Windows API 使用的数据类型。
来自文章Everything You Want To Know About ODBC Tracing
In the trace log, you’ll see the data type of the handle being
SQLHANDLE, HENV / SQLHENV, HDBC / SQLHDBC, HSTMT / SQLHSTMT. This
value is unique to the particular series of items being called. You
can search in the trace log for this handle number and each call made
on the handle will be shown. This allows you to pick out only the
calls in the trace log that are relevant to your error message. Keep
in mind, some applications may create multiple handles. For example,
your application may execute three statements consecutively with each
residing on a different statement handle.
有关示例和更多详细信息,请参阅下一个不错的文档:-
我的 ODBC 日志中有以下行:
(场景:pgAdmin4,在另一个名为系统管理的应用程序中通过 ODBC32 使用 PostgreSQL 服务器)
System Admi 6a0-6f8 ENTER SQLExecDirect
HSTMT 0x00630718
UCHAR * 0x036B29C0 [ 63] "create table new (npages integer, ifnds integer, ifnid integer)"
SDWORD 63
我需要知道 HSTMT
、UCHAR*
和 SDWORD
的含义。旁边的数字是什么意思?
这是ODBC tracing的记录
有一个过程 "SQLExecDirect",语句句柄为 0x00630718,文本参数(作为指针传递)是 "create table ...",最后一个参数是文本大小(作为字类型传递)。请参阅 MSDOC 中的相关 reply。
HSTMT
、UCHAR
、SDWORDS
是 C、C++ MS Windows API 使用的数据类型。
来自文章Everything You Want To Know About ODBC Tracing
In the trace log, you’ll see the data type of the handle being SQLHANDLE, HENV / SQLHENV, HDBC / SQLHDBC, HSTMT / SQLHSTMT. This value is unique to the particular series of items being called. You can search in the trace log for this handle number and each call made on the handle will be shown. This allows you to pick out only the calls in the trace log that are relevant to your error message. Keep in mind, some applications may create multiple handles. For example, your application may execute three statements consecutively with each residing on a different statement handle.
有关示例和更多详细信息,请参阅下一个不错的文档:-