| 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 |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!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
sp_cursorunprepare handle
[ ; ]
[!INCLUDE extended-stored-procedures]
The handle value returned by sp_cursorprepare when the statement is prepared.