Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

sp_execute (Transact-SQL)

SQL Server 2008

Executes a prepared Transact-SQL statement using a specified handle and optional parameter value. sp_execute is invoked by specifying ID =12 in a tabular data stream (TDS) packet.

Topic link iconTransact-SQL Syntax Conventions

sp_execute handle OUTPUT[ ,bound_param ][ ,...n ]]
handle

Is the handle value returned by sp_prepare. handle is a required parameter that calls for int input value.

bound_param

Signifies the use of additional parameters. bound_param is a required parameter that calls for input values of any data type to signify additional parameters for the procedure.

NoteNote

bound_param must match the declarations made by the sp_prepareparams value and can be in the form @name = value or value.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.