FIX: Assertion error occurs when you use IDENT_CURRENT on view that has identity columns in SQL Server

Applies to: SQL Server 2016 Service Pack 2SQL Server 2016 DeveloperSQL Server 2016 Enterprise

Symptoms


Consider the following scenario:
  • You create a memory optimized table with identity columns in Microsoft SQL Server.
  • You create a View on the table. 
  • You query on the view that has identity columns by using IDENT_CURRENT.
In this scenario, you may receive an Assertion error.

Status


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

Resolution


This issue is fixed in the following cumulative updates for SQL Server:
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:

References


Learn about the terminology that Microsoft uses to describe software updates.