Hi,I am new to sql server and old to Oracle.I have the following Oracle function:[code="other"]create or replace function ak_del_febs (p varchar2) return number isbegin return 20;end;[/code]Here is my code for sql server:[code="other"]begin declare @itemcode nvarchar(MAX) = 'test'; declare @Stock numeric; EXECUTE ( 'BEGIN ? := ak_del_febs( ? ); END;', @Stock OUTPUT, @itemcode)at MegaOracle; print @Stock print @itemcode;endGO[/code]Problem is I get no result (null)...Any ideas?thx Andreas
↧