Using SQL Server Management Studio
To view the definition a procedure in Object Explorer, connect to an instance of Database Engine and then expand that Instance. Expand Databases, expand the database in which the procedure belongs, and then expand Programmability. Expand Stored Procedures, right-click the procedure and then click Script Stored Procedure as, and then click one of the following: Create To, Alter To, or Drop and Create To. Select New Query Editor Window. This will display the procedure definition.