I have a stored procedure SP1 which has the signature SP1("TABLE_NAME") And SP1 creates a table with the parameter passed
My second stored procedure has the signature SP2("PROCEDURE_NAME","PROCEDURE_PARAMETERS") below is a snippet of the code inside SP2
v_sqlCode = `CALL ` + PROCEDURE_NAME + `(` + P_PROCEDURE_PARAMETERS + `)`;
try{
var sqlStmt = snowflake.createStatement({sqlText : v_sqlCode});
var sqlRS = sqlSt,t.execute();
}
Unfortunately I keep getting the error invalid identifier for the P_PROCEDURE_PARAMETER
So if I did CALL SP2('SP1','C')
snowflake would say invalid identifier 'C' any ideas?