FIX: "Invoke-sqlcmd" cmdlet executes a query statement multiple times if an error occurs in SQL Server 2014


You use the invoke-sqlcmd cmdlet to execute a query statement in an instance of SQL Server 2014. However, if execution fails because of an error, the query statement is executed multiple times.


This issue is fixed in Cumulative Update 4 for SQL Server 2014 Service Pack 2.

About cumulative updates for SQL Server


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


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

Id. de artículo: 4010159 - Última revisión: 21/02/2017 - Revisión: 9

Microsoft SQL Server 2014 Developer, Microsoft SQL Server 2014 Enterprise, Microsoft SQL Server 2014 Enterprise Core, Microsoft SQL Server 2014 Standard