sp_execute
spexecute executes a prepared Transact-SQL statement using a specified handle and optional parameter value.
What changes
- Input
- Depends on the statement text.
- Output or change
- Depends on the statement text.
Syntax at a glance
sp_execute handle OUTPUT
[ , bound_param ] [ , ...n ]
[ ; ]
Work example
spexecute executes a prepared Transact-SQL statement using a specified handle and optional parameter value.
Read the parameter list and identify the provider operation it supports. Do not call it directly from application T-SQL.
Check your work Why does Microsoft limit direct calls to this procedure?
Open Microsoft Learn for full syntax, permissions, and details for your version.