I made a stored procedure like this:
CREATE PROCEDURE SP_EXEC_CREATE_SCRIPTLANGUAGE SQLSCRIPTASBEGINdeclare statement clob;SELECT STRING_AGG(TO_NVARCHAR(DEFINITION), '') FROM SYS.PROCEDURES WHERE SCHEMA_NAME='TEST_SCHEMA' AND PROCEDURE_NAME LIKE 'S...