I need to call an Oracle function Function PK_DM_API_EDIT_ENTITY.DONE from SQL Server.
I call it like this in Oracle:
begin
PK_DM_API_EDIT_ENTITY.CHANGE ('dep', '322');
PK_DM_API_EDIT_ENTITY.SET_VALUE ('id_sub', '102');
PK_DM_API_EDIT_ENTITY.DONE;
end
It works fine in Oracle - string was updated.
But if I call this function from SQL Server:
EXECUTE ( 'begin PK_DM_API_EDIT_ENTITY.CHANGE ( ?,? ); end; ', 'dep', '322') AT [MSD]
EXECUTE ( 'begin PK_DM_API_EDIT_ENTITY.SET_VALUE ( ?,? ); end; ', 'id_sub', '102') AT [MSD]
EXECUTE ( 'begin ? := PK_MDM_API_EDIT_ENTITY.done; end;') AT [MSD]
Then the string is not updated. I don't know why... can you please help?