How to: Rename a Stored Procedure (SQL Server Management Studio)
New: 5 December 2005
This topic describes how to rename a stored procedure by using Object Explorer in SQL Server Management Studio.
Important
Changing the name or definition of a stored procedure can cause dependent objects to fail when the objects are not updated to reflect the changes that have been made to the stored procedure. For more information, see How to: View the Dependencies of a Stored Procedure (SQL Server Management Studio).
To rename a stored procedure
In Object Explorer, connect to an instance of SQL Server 2005 Database Engine and then expand that instance.
Expand Databases, expand the database in which the stored procedure belongs, and then expand Programmability.
Expand Stored Procedures, right-click the procedure to rename, and then click Rename.
Modify the stored procedure name.
Modify the stored procedure name referenced in dependent objects or scripts.
See Also
Tasks
How to: Use Templates in SQL Server Management Studio
How to: Create a Stored Procedure (SQL Server Management Studio)
How to: Modify a Stored Procedure (SQL Server Management Studio)
How to: Delete a Stored Procedure (SQL Server Management Studio)
How to: View the Dependencies of a Stored Procedure (SQL Server Management Studio)
Other Resources
Stored Procedure How-to Topics