Using Parameters
There is support for parameterised statements, and using parameters when calling procedures.
Input parameters are added to a Request using
Request.addParameter()
,
and output parameters are added using
Request.addOutputParameter()
Parameter names
In T-SQL, parameter names are identified by being prefixed with an '@'.
The parameters names used in this API do not include the '@'.
Input Parameters
This is how input parameters might be used when executing a statement.
Calling a stored procedure with parameters works in a similar way.
Output Parameters
The values for output parameters are provided with emitted
returnValue
events.
Table-Valued Parameters
TVP are only supported when using callProcedure
.