I came up with a solution that works:
- Use the construct 'declare' and 'end'
- Compatible with 'execute instant'
- Add the using statement to the end of exec immediately to enter the variable
So, a script that implements this might look something like this:
declare
myVar number;
myStatement varchar2(50);
begin
myStatement:='exec myProc(:1)';
execute immediate myStatement using output myVar;
end;
Paste this script into the Execute SQL task, set the task properties and it will work!
Oracle, : 1 - . sqlplus - sqlplus, @ .
: SSIS, .