FIX: System stored procedure sp_execute_external_script and DMV sys.dm_exec_cached_plans cause memory leaks in SQL Server 2016 and 2017

Applies to: SQL Server 2017 DeveloperSQL Server 2017 Enterprise CoreSQL Server 2017 Enterprise


The system stored procedure sp_execute_external_script and the dynamic management view sys.dm_exec_cached_plans can cause memory leaks in SQL Server 2016 and 2017.


This fix is included in the following cumulative updates for SQL Server:

Cumulative Update 4 for SQL Server 2017

Cumulative update 8 for SQL Server 2016 SP1


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


Learn about the terminology Microsoft uses to describe software updates.