Just a tip, change the ALTER PROCEDURE to a CREATE PROCEDURE and the script will execute.
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉