title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_cursorunprepare (Transact-SQL) |
sp_cursorunprepare discards the execution plan developed in the sp_cursorprepare stored procedure. |
markingmyname |
maghan |
randolphwest |
03/07/2025 |
sql |
system-objects |
reference |
|
|
|
[!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.