更新日期:2024年09月11日
SQLAllocStmt 为使用 hdbc 指定的连接的语句句柄分配内存。
应用程序必须在提交 SQL 语句之前调用 SQLAllocStmt。
下表描述了 SQLAllocStmt 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08003
-11017
Connection not open
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1009
-11066
Invalid argument value
08S01
-11301
A protocol error has been detected. Current connection is
closed.