Try it yourself:
Go
CREATE PROC TestRename AS
Print ‘XYZ’
GO
Now, rename this SP using the management studio object list to “RenameTest”
sp_helptext RenameTest
Now if you observer the result pane, the result will be the same statement with the procedure name still not changed even after renaming the SP using the management studio. The result will be as shown below.
CREATE PROC TestRename AS
Print 'XYZ'
