问题描述
SQLGetData函数参考说明了API的以下一般限制:
The SQLGetData Function reference explains the following general limitation of the API:
SQLGetData
上的 ODBC API实现详细信息文章添加了SQL Server本机客户端驱动程序特定的信息:
The ODBC API implementation details article on the SQLGetData
adds information specific to the SQL Server Native Client driver:
此列排序限制是否适用于新的和推荐的 SQL Server的Microsoft ODBC驱动程序?
Does this column ordering limitation apply to the new and recommended Microsoft ODBC Driver for SQL Server?
当前用于SQL Server版本的ODBC驱动程序11和即将发布的版本用于SQL Server的ODBC驱动程序13(预览版)?
Is there any difference in this behaviour between the currentODBC Driver 11 for SQL Server version and the upcoming version ODBC Driver 13 (Preview) for SQL Server?
推荐答案
所有当前的Microsoft SQL Server驱动程序都具有列顺序限制.
All current Microsoft SQL Server drivers has column ordering limitations.
您可以通过调用SQLGetInfo
ODBC函数,从代码中测试驱动程序的功能.
You can test the drivers capabilities from code by calling the SQLGetInfo
ODBC function.
用于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 Client 10.0 返回以下内容:
SQL_GETDATA_EXTENSIONS:
SQL_GD_ANY_COLUMN false
SQL_GD_ANY_ORDER false
这篇关于ODBC驱动程序11的SQL Server和SQLGetData限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!