The SQLGetData Function link explains the following general API limitation:
If the driver does not support SQLGetData extensions, the function can only return data for unrelated columns with a number greater than that of the last associated column. In addition, within the data series, the value of the Col_or_Param_Num argument in each SQLGetData call must be greater than or equal to the Col_or_Param_Num value in the previous call; that is, data must be obtained in an increase in the column order number.
Article description ODBC API implementation to SQLGetDataadd information specific to SQL Server Native Client driver:
The SQL Server Native Client ODBC driver does not support using SQLGetData to retrieve data in random column order. All unrelated columns processed using SQLGetData must have higher column numbers than the related columns in the result set.
Does this limit column ordering to the new Microsoft recommended ODBC driver for SQL Server ?
Is there a difference in this behavior between the current ODBC Driver 11 for SQL Server version and the upcoming ODBC Driver 13 (Preview) version for SQL Server?
source
share