Dear Colleagues ,
I need your esteemed guidance to fix this issue.
i was trying to run a procedure , with three arguments that holds the HDBDD table names in parameters and when i run it , it throws me error.
I tried to call this procedure
CALL "schema"."location.loc::MIGRATION_MP"( 'schema.location.loc::T1.tb_TT', 'schema1.location.loc::t1.tb_TT', 'schema1.location.loc::t1.a_TT');
so i am calling the procedure with the table name to insert data in to a table in another schema. where i am passing condition in insert where the selected column entry has the input of another table activity(corresponding table name)
Your support is greatly appreciated.
procedure "SCHEMA"."Location::MIGRATION_MP"(
in T_TARGET nvarchar(254),in T_LEGACY nvarchar(254) , in v_interface VARCHAR(254)
) LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
DEFAULT SCHEMA "SCHEMA"
AS
BEGIN exec('insert into ' || :T_TARGET || ' select * from ' || :T_LEGACY);insert into "schema::T1.TT" select * from "schema1::T1.TT" where "Column" = :v_interface;
END;
Request clarification before answering.
Hi Rajan ,
One question !!!!
exec 'set schema '||:schema_name;
exec('CREATE VIEW ' || schema_name || '.' || view_name || ' AS (' || view_definition || ')');
Can we execute the above commends in one exec ?? also where should i add the double quotes as i am getting the same error "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.