December 2002
Intermediate to advanced
1560 pages
40h 44m
English
To increase stored procedure flexibility and perform more complex processing, you can pass parameters to the procedures. The parameters can be used anywhere that local variables can be used within the procedure. For more information on how to use local variables, refer to Chapter 26.
Following is an example of a stored procedure that requires three parameters:
CREATE PROC myproc @parm1 int, @parm2 int, @parm3 int AS -- Processing goes here RETURN
To help identify the data values for which the parameters are defined, it is recommended that you give your parameters meaningful names. Parameter names, such as local variables, can be up to 128 characters in length including the @ sign, and they must follow SQL Server rules ...
Read now
Unlock full access