rename sql function in script code example
Example: rename stored procedure in sql server
--Rename the stored procedure.
EXEC sp_rename 'OldName', 'NewName';
--Rename the stored procedure.
EXEC sp_rename 'OldName', 'NewName';