Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

SQL Server session hangs when you try to enable snapshot isolation in SQL Server 2016


View products that this article applies to.

Symptoms

After you install SQL Server SP1 Cumulative Update 6 (CU6), SQL Server session hangs indefinitely when you try to enable snapshot isolation by using the following statements:

ALTER DATABASE DatabaseName SET ALLOW_SNAPSHOT_ISOLATION ON

Note This issue may occur when you have a server audit started on the instance which is defined with an audit specification that includes DATABASE_CHANGE_GROUP.

↑ Back to the top


Workaround

To work around this issue, temporarily stop the audit. The following are the statements:

  • Stop the audit: 

    ALTER SERVER AUDIT AuditName WITH (STATE = OFF) GO

  • Change the database isolation level: 

    ALTER DATABASE DatabaseName SET ALLOW_SNAPSHOT_ISOLATION ON

  • Turn the audit back on: 

    ALTER SERVER AUDIT AuditName WITH (STATE = ON) GO

↑ Back to the top


Status

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

↑ Back to the top


References

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

↑ Back to the top


Keywords: kbfix, kbsurveynew, kbexpertiseadvanced, snapshot isolation

↑ Back to the top

Article Info
Article ID : 4090966
Revision : 4
Created on : 2/23/2018
Published on : 2/23/2018
Exists online : False
Views : 349