Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.75 KB

sp-prepexecrpc-transact-sql.md

File metadata and controls

53 lines (38 loc) · 1.75 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_prepexecrpc (Transact-SQL)
sp_prepexecrpc prepares and executes a parameterized stored procedure call specified using an RPC identifier.
markingmyname
maghan
randolphwest
03/07/2025
sql
system-objects
reference
sp_cursor_prepexecrpc
sp_cursor_prepexecrpc_TSQL
sp_prepexecrpc
TSQL

sp_prepexecrpc (Transact-SQL)

[!INCLUDE SQL Server]

Prepares and executes a parameterized stored procedure call specified using a remote procedure call (RPC) identifier. sp_prepexecrpc is invoked by ID = 14 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_prepexecrpc handle OUTPUT , RPCCall
    [ , bound_param ] [ , ...n ]
[ ; ]

Arguments

[!INCLUDE extended-stored-procedures]

handle

The [!INCLUDE ssNoVersion]-generated prepared handle identifier. handle is a required parameter with an int return value.

RPCCall

Defines the stored procedure call using ODBC canonical syntax. RPCCall is a required parameter that calls for an ntext string input value.

bound_param

Signifies the optional use of extra parameters. bound_param calls for an input value of any data type to designate the extra parameters in use.

Related content