gpt4 book ai didi

sql - HSTMT、UCHAR、SDWORD在ODBC日志中的含义

转载 作者:行者123 更新时间:2023-11-29 12:56:43 27 4
gpt4 key购买 nike

我的 ODBC 日志中有以下行:

(场景:pgAdmin4,在另一个名为 System Administration 的应用程序中通过 ODBC32 使用 PostgreSQL 服务器)

System Admi 6a0-6f8 ENTER SQLExecDirect 
HSTMT 0x00630718
UCHAR * 0x036B29C0 [ 63] "create table new (npages integer, ifnds integer, ifnid integer)"
SDWORD 63

我需要知道HSTMTUCHAR*SDWORD 的含义。旁边的数字是什么意思?

最佳答案

来自文章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.

有关示例和更多详细信息,请遵循下一个不错的文档:-

How to read an ODBC trace file.rtf

关于sql - HSTMT、UCHAR、SDWORD在ODBC日志中的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41327675/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com