cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC Stored Procedure. Help required

Former Member
0 Kudos

Hi All,

Suppose my Stored Procedure name is: getEmpDetails

1. Is this reqest mapping ok:

JDBCEmpReqMt

Statement

getEmpDetails

Execute -


action

EmpID

CHAR -


type

2. In the JDBC Receiver Adapter

In Connection Parameter : Do we need to give after DatabaseName SelectMethod=cursor or not ?

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If Empid in oracle table is of form Varchar2, i suggest use type = Varchar.

Also since your stored procedure is returning Cursor, you have to use such a Request structure

EmpID

type----


VARCHAR

CursorName

isOutput----


TRUE

type----


CURSOR

Also, from SP16 onwards, you can try out oracle stored procedures returing cursors.

Regards

Former Member
0 Kudos

Hi Arpil,

I am referring blog

Can you pls see his sample procedure is returning cursor or not? I think so not.

He is using SelectMethod=cursor in Connection parameter of

JDBC receiver adapter. I do not get why?

Regards

Former Member
0 Kudos

Hi Rick,

I think that's just connection string pertaining to your SQL server. I found this link. http://msdn.microsoft.com/en-us/data/cc325721.aspx#10

Might be helpful.

Also look at this blog for creating structure and mapping.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78d...

Tell me if it solves your query.