Click here to Skip to main content
15,901,373 members
Home / Discussions / Database
   

Database

 
GeneralRe: Translate data from one schema to another Pin
Mycroft Holmes14-Mar-10 17:46
professionalMycroft Holmes14-Mar-10 17:46 
GeneralRe: Translate data from one schema to another Pin
treefirmy14-Mar-10 18:00
treefirmy14-Mar-10 18:00 
GeneralRe: Translate data from one schema to another Pin
Mycroft Holmes14-Mar-10 18:15
professionalMycroft Holmes14-Mar-10 18:15 
GeneralRe: Translate data from one schema to another Pin
treefirmy14-Mar-10 18:23
treefirmy14-Mar-10 18:23 
GeneralRe: Translate data from one schema to another Pin
Jörgen Andersson14-Mar-10 23:27
professionalJörgen Andersson14-Mar-10 23:27 
QuestionCalling Oracle Function via Linked Server returns error [modified] Pin
Ph@ntom14-Mar-10 2:13
Ph@ntom14-Mar-10 2:13 
AnswerRe: Calling Oracle Function via Linked Server returns error Pin
Mycroft Holmes14-Mar-10 14:55
professionalMycroft Holmes14-Mar-10 14:55 
GeneralRe: Calling Oracle Function via Linked Server returns error Pin
Ph@ntom14-Mar-10 19:19
Ph@ntom14-Mar-10 19:19 
Thanks for the comments.

A little more to understand the problem, I'v found that the error message was because of the returned type boolean (@RetVal).

-- oracle implementation
--======================
CREATE OR REPLACE FUNCTION TEST_ERP_INSERT (
P_SOURCE_CODE IN VARCHAR2
, P_SOURCE_LINE_ID IN NUMBER
, P_TRANSACTION_NUMBER IN VARCHAR2
, P_FEEDER_ITEM_CODE IN VARCHAR2
, P_SALES_PRICE IN NUMBER
, P_FEEDER_ORGANIZATION_CODE IN VARCHAR2
, P_FEEDER_SUBINVENTORY_CODE IN VARCHAR2
, P_TRANSACTION_QUANTITY IN NUMBER
, P_TRANSACTION_DATE IN VARCHAR2
, P_FEEDER_TRANSACTION_TYPE IN VARCHAR2
, P_FEEDER_TRANSFER_SUBINV_CODE IN VARCHAR2
, p_errmesg OUT VARCHAR2
)
RETURN BOOLEAN
IS
BEGIN

RETURN 1;
--
EXCEPTION
--
WHEN OTHERS
THEN
--
p_errmesg := 'Error:'
|| SQLERRM;
--
RETURN 0;
END;



-- calling from sql server
--========================
DECLARE @ErrMsg VARCHAR(1000)
DECLARE @RetVal SMALLINT
EXEC ('BEGIN ? := TEST_ERP_INSERT(?,?,?,?,?,?,?,?,?,?,?,?);END;', @RetVal,'SSP-SALES', 8728, '15059', 'SSP1032', 12,'S', 'S-SALES', 1, '13/MAR/2010', 'S-SALES_ISSUE', '', @ErrMsg OUTPUT) AT ERPUSTG;

Any idea? I can't change the returned type because its a different system.
The Phantom.

QuestionSample datamodel for marketing promotion Pin
anushh13-Mar-10 20:52
anushh13-Mar-10 20:52 
AnswerRe: Sample datamodel for marketing promotion Pin
Mycroft Holmes13-Mar-10 23:55
professionalMycroft Holmes13-Mar-10 23:55 
AnswerRe: Sample datamodel for marketing promotion Pin
Andy_L_J14-Mar-10 1:32
Andy_L_J14-Mar-10 1:32 
Questionselect before and after question Pin
Eli Nurman13-Mar-10 8:44
Eli Nurman13-Mar-10 8:44 
AnswerRe: select before and after question Pin
Luc Pattyn13-Mar-10 9:08
sitebuilderLuc Pattyn13-Mar-10 9:08 
AnswerRe: select before and after question Pin
Chris Meech13-Mar-10 9:10
Chris Meech13-Mar-10 9:10 
GeneralRe: select before and after question Pin
Eli Nurman13-Mar-10 9:24
Eli Nurman13-Mar-10 9:24 
GeneralRe: select before and after question Pin
Jörgen Andersson13-Mar-10 10:04
professionalJörgen Andersson13-Mar-10 10:04 
GeneralRe: select before and after question Pin
Eli Nurman13-Mar-10 10:46
Eli Nurman13-Mar-10 10:46 
GeneralRe: select before and after question Pin
Not Active13-Mar-10 11:46
mentorNot Active13-Mar-10 11:46 
GeneralRe: select before and after question Pin
Eli Nurman13-Mar-10 12:09
Eli Nurman13-Mar-10 12:09 
GeneralRe: select before and after question Pin
Mycroft Holmes13-Mar-10 20:27
professionalMycroft Holmes13-Mar-10 20:27 
Questionneed help in building this view, please Edited to add results of trying RIGHT OUTER JOIN Pin
Michael J. Eber12-Mar-10 10:39
Michael J. Eber12-Mar-10 10:39 
AnswerRe: need help in building this view, please Edited to add results of trying RIGHT OUTER JOIN Pin
Mycroft Holmes12-Mar-10 16:52
professionalMycroft Holmes12-Mar-10 16:52 
GeneralRe: need help in building this view, please Edited to add results of trying RIGHT OUTER JOIN Pin
Michael J. Eber15-Mar-10 7:47
Michael J. Eber15-Mar-10 7:47 
GeneralRe: need help in building this view, please Edited to add results of trying RIGHT OUTER JOIN Pin
i.j.russell15-Mar-10 9:31
i.j.russell15-Mar-10 9:31 
QuestionGetting SP results from a table with multiple rows for same ID [modified] Pin
DeepToot12-Mar-10 9:37
DeepToot12-Mar-10 9:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.