Viewing and Modifying Stored Procedures with SSMS

You can also use SSMS to create, view, and modify stored procedures.

To edit a stored procedure in SSMS, expand the Programmability folder and then the Stored Procedures folder, right-click the name of the procedure you want to modify, and select Modify (see Figure 24.5).

Image

FIGURE 24.5 Modifying stored procedures in SSMS.

SSMS then extracts the ALTER PROCEDURE statement for the selected procedure into a new query window. Here, you can edit the procedure code as needed and then execute the contents of the query window to modify the procedure. In addition, the Object Browser in SSMS provides other ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.