This is another popular question I
receive. How to see text/content/code of Stored Procedure. System stored
procedure that prints the text of a rule, a default, or an unencrypted
stored procedure, user-defined function, trigger, or view.
Syntax
Displaying the definition of a trigger or stored procedure
sp_helptext @objname = 'name'
sp_helptext [ @objname = ] 'name' [ , [ @columnname = ] computed_column_name
Displaying the definition of a trigger or stored procedure
sp_helptext 'dbo.nameofsp'