Symptoms
When temp table is used in a different scope and identity insert is performed for the temp table by the SET IDENTITY_INSERT in SQL Server 2019, you may receive an error message that resembles the following:
Msg 544 Cannot insert explicit value for identity column in table
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 update 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.