Applies to: yesSQL Server (all supported versions) YesAzure SQL Database YesAzure SQL Managed Instance yesAzure Synapse Analytics yesParallel Data Warehouse

SQLStatistics can be executed on a static cursor. An attempt to execute SQLStatistics on an updatable (keyset-driven or dynamic) returns SQL_SUCCESS_WITH_INFO indicating the cursor type is changed.

See Also

SQLStatistics Function
ODBC API Implementation Details