SP Format
Create
Proc SP_Name ( @param1 int ,
@param2 nchar)
@param1 datatype , /* declare parameters */
@param2 datatype ,
WITH Recompile , Encryption
// prevent user
from running sp_helptext, view your code
AS
BEGIN
Declare var1 char
/* declare variable*/
Set var1='hello
world' /* initialize */
IF
SQL Statement
Insert, Select ,Update , Delete
ELSE
Statement......
END
GO
Show SP content
sp_helptext customerinfo
|