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

Database

 
GeneralRe: Translate data from one schema to another Pin
Mycroft Holmes14-Mar-10 16:48
professionalMycroft Holmes14-Mar-10 16:48 
GeneralRe: Translate data from one schema to another Pin
treefirmy14-Mar-10 17:10
treefirmy14-Mar-10 17:10 
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 
I am trying to call Oracle function via Linked Server, while executing it return the error. Can some one tell what is going wrong with this code, keep in mind that the parameter passed are of exactly same type defined in Oracle function except the date type parameter which I am passing as string because there is no equivalent.

-- returned error --

OLE DB provider "MSDAORA" for linked server "ERPUDEV" returned message "ORA-06550: line 1, column 18:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


-- calling part --
DECLARE @source_code VARCHAR(30)
DECLARE @source_lineid INT
DECLARE @feeder_itemcode VARCHAR(40)
DECLARE @sales_price INT
DECLARE @fdr_org_code VARCHAR(10)
DECLARE @fdr_subinv_code VARCHAR(10)
DECLARE @txn_qty INT
DECLARE @txn_date VARCHAR(30)
DECLARE @feeder_txntype VARCHAR(30)
DECLARE @fdr_subinvcode VARCHAR(10)
DECLARE @fdr_trnsubinvcode VARCHAR(10)
DECLARE @item_desc VARCHAR(10)

DECLARE @ErrMsg VARCHAR(100)
DECLARE @RetVal INT

SET @source_code = 'SSP-SALES'
SET @source_lineid = 8728
SET @txn_no = '15059'
SET @txn_no2 = '29193'
SET @feeder_itemcode = 'SSP1032'
SET @sales_price = 12
SET @fdr_org_code = 'S'
SET @fdr_subinvcode = 'S-SALES'
SET @txn_qty = 1
SET @txn_date = '13/MAR/2010'
SET @feeder_txntype = 'S-SALES_ISSUE'
SET @fdr_trnsubinvcode = ''

EXEC ('BEGIN ? := xx_eginv_f_dfs_erp_insert(?,?,?,?,?,?,?,?,?,?,?,?);END;', @RetVal,@source_code, @source_lineid, @txn_no, @feeder_itemcode, @sales_price,@fdr_org_code, @fdr_subinvcode, @txn_qty, @txn_date, @feeder_txntype, @fdr_trnsubinvcode,@ErrMsg OUTPUT) AT ERPUDEV
The Phantom.
modified on Sunday, March 14, 2010 8:19 AM

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 
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 

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.