FIX: Access violation occurs when you use sp_xml_preparedocument to open XML documents in SQL Server

Applies to: SQL Server 2014 DeveloperSQL Server 2014 EnterpriseSQL Server 2014 Enterprise Core

Symptoms


When you use the stored procedure sp_xml_preparedocument to open XML documents in Microsoft SQL Server, an access violation occurs. In addition, you may experience an increase in OPENXML sessions waiting on the "PREEMPTIVE_OS_LIBRARYOPS" wait type.

Resolution


This issue is fixed in the following cumulative updates for SQL Server:

      Cumulative Update 1 for SQL Server 2017

      Cumulative Update 9 for SQL Server 2016 RTM

      Cumulative Update 6 for SQL Server 2016 SP1

      Cumulative Update 7 for SQL Server 2014 SP2

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 that Microsoft uses to describe software updates.