Core component of SQL Server for storing, processing, and securing data
Hi Sebastien, Thanks for your feedback. Currently, only Microsoft.Data.SqlClient (6.0.2) has support for JSON data type. All other drivers will see the JSON type as either varchar(max) with UTF8 collation or nvarchar(max) with database collation. We are looking at adding support in JDBC driver for JSON data type.
For ODBC/OLDB, adding support for JSON datatype requires providing API for dealing with JSON documents / parsing. So, we are evaluating what to do here. I would love to hear more about what type of application you are building with JSON and what you plan to do with JSON data in the ODBC app.
Now, since you are using the new ODBC driver that has support for UTF-8 collation, the driver will currently see the JSON type as varchar(max) column only. Can you provide a repro with the table schema that demonstrates the SQLFetchScroll? Which cursor type are you using or just the default result set? Is the example from below article close to what you are doing? I will try to repro the issue.