✅ Looking up old versions of stored procedures must be done outside Snowflake.
✅ Consider keeping a master copy of each stored procedure’s CREATE PROCEDURE command in a source code control system.
✅ If a source code control system is not available, you can partly simulate one by storing the CREATE PROCEDURE commands in a VARCHAR field in a table, and adding each new version (without replacing the older version(s)).