Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.34 KB

File metadata and controls

45 lines (34 loc) · 1.34 KB
title sp_cursorunprepare (Transact-SQL)
description sp_cursorunprepare discards the execution plan developed in the sp_cursorprepare stored procedure.
author markingmyname
ms.author maghan
ms.reviewer randolphwest
ms.date 06/23/2025
ms.service sql
ms.subservice system-objects
ms.topic reference
f1_keywords
sp_cursorunprepare_TSQL
sp_cursorunprepare
helpviewer_keywords
sp_cursorunprepare
dev_langs
TSQL

sp_cursorunprepare (Transact-SQL)

[!INCLUDE SQL Server]

Discards the execution plan developed in the sp_cursorprepare stored procedure. sp_cursorunprepare is invoked by specifying ID = 6 in a tabular data stream (TDS) packet.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_cursorunprepare handle
[ ; ]

Arguments

[!INCLUDE extended-stored-procedures]

handle

The handle value returned by sp_cursorprepare when the statement is prepared.

Related content