gpt4 book ai didi

sql-server - ODBC Driver 11 for SQL Server 和 SQLGetData 限制

转载 作者:行者123 更新时间:2023-12-03 07:34:16 25 4
gpt4 key购买 nike

SQLGetData Function引用解释了 API 的以下一般限制:

If the driver does not support extensions to SQLGetData, the function can return data only for unbound columns with a number greater than that of the last bound column. Furthermore, within a row of data, the value of the Col_or_Param_Num argument in each call to SQLGetData must be greater than or equal to the value of Col_or_Param_Num in the previous call; that is, data must be retrieved in increasing column number order.



ODBC API implementation details articleSQLGetData添加特定于 SQL Server Native Client 驱动程序的信息:

The SQL Server Native Client ODBC driver does not support using SQLGetData to retrieve data in random column order. All unbound columns processed with SQLGetData must have higher column ordinals than the bound columns in the result set.



此列订购限制是否适用于新的和推荐的 适用于 SQL Server 的 Microsoft ODBC 驱动程序 ?

当前的这种行为有什么不同吗?
用于 SQL Server 版本的 ODBC 驱动程序 11 和用于 SQL Server 的即将推出的版本 ODBC 驱动程序 13(预览版)?

最佳答案

所有当前的 Microsoft SQL Server 驱动程序都有列顺序限制。

您可以通过调用 SQLGetInfo 从代码中测试驱动程序的功能。 ODBC 函数。

用于 SQL Server 的 ODBC 驱动程序 17 返回以下内容:

SQL_GETDATA_EXTENSIONS:
SQL_GD_ANY_COLUMN false
SQL_GD_ANY_ORDER false

用于 SQL Server 的 ODBC 驱动程序 13 返回以下内容:
SQL_GETDATA_EXTENSIONS:
SQL_GD_ANY_COLUMN false
SQL_GD_ANY_ORDER false

SQL Server native 客户端 10.0 返回以下内容:
SQL_GETDATA_EXTENSIONS:
SQL_GD_ANY_COLUMN false
SQL_GD_ANY_ORDER false

关于sql-server - ODBC Driver 11 for SQL Server 和 SQLGetData 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35093643/

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