on 2023 Jul 05 1:53 PM
I made a stored procedure like this:
CREATE PROCEDURE SP_EXEC_CREATE_SCRIPT
LANGUAGE SQLSCRIPT
AS
BEGIN
declare statement clob;
SELECT STRING_AGG(TO_NVARCHAR(DEFINITION), '
') FROM SYS.PROCEDURES WHERE SCHEMA_NAME='TEST_SCHEMA' AND PROCEDURE_NAME LIKE 'SP_%') INTO statement FROM DUMMY;
EXEC :statement;
END
but the EXEC is not going to well. Any suggestions are welcome.
User | Count |
---|---|
91 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.