Skip to Content
0
Dec 19, 2022 at 02:02 PM

Fetching SQL statements is not supported for this report. (997) with ODBC driver 13 for SQL server

537 Views

Hi Team,

I am getting a very weird behavior with ODBC driver 13 for SQL Server however everything works fine with ODBC driver 11 for SQL Server. We are using ODBC connection for our report.

sql = Me.RowsetController.GetSQLStatement(New DataDefModel.GroupPath)

The above statement throws "Fetching SQL statements" error with ODBC Driver13 on printing report criteria. However print report criteria works fine with ODBC Driver 11 for SQL Server. Although nothing has changed other than driver in the registry ODBC DSN.

We are using Visual Studio 2019 with .NET framework 4.8. Also we are using Crystal Report Runtime 13 support pack 10 with version 13.0.10.1385

Could someone from SAP suggest how to resolve this behavior. We are not able to upgrade to ODBC Driver 13,17 or 18 ?