KB3189655 - Error 33294 if a cursor is declared by using the OPTION (RECOMPILE) query hint in SQL Server 2016

Applies To
SQL Server 2016 Developer - duplicate (do not use) SQL Server 2016 Enterprise - duplicate (do not use) SQL Server 2016 Enterprise Core - duplicate (do not use) SQL Server 2016 Standard - duplicate (do not use)

Symptoms

Assume that you specify the OPTION (RECOMPILE) query hint when you declare a cursor in a query. When you execute the query in an instance of Microsoft SQL Server 2016, you may receive an error message that resembles the following:

Note

Msg 33294, Level 16, State 3, Line 130

Some parameters or columns of the batch require to be encrypted, but the corresponding column encryption key cannot be found. Use sp_refresh_parameter_encryption to refresh the module parameters metadata.

      

Resolution

The fix for this issue is included in the following cumulative update for SQL Server:

Cumulative Update 2 for SQL Server 2016
      

About cumulative updates for SQL Server

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Latest cumulative update for SQL Server 2016
      

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

Learn about the terminology Microsoft uses to describe software updates.