If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Call stroed procedure using sqlda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-11, 03:51
Bobby123 Bobby123 is offline
Registered User
 
Join Date: Dec 2011
Posts: 10
Call stroed procedure using sqlda

I am porting a code from DB2 to ORACLE

In DB2 , a stored procedure is called using sqlda. calling syntax is given below

EXEC SQL CALL procedure_name USING DESCRIPTOR :sqlda


I want to do same thing in ORALCE , but not able to find out correct method

Thanks in Advance
Reply With Quote
  #2 (permalink)  
Old 12-22-11, 05:04
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
Where would you want to call the procedure from? Generally speaking, you should enclose it within BEGIN-END, such as
Code:
begin
  procedure_name;
end;
Reply With Quote
  #3 (permalink)  
Old 12-22-11, 05:25
Bobby123 Bobby123 is offline
Registered User
 
Join Date: Dec 2011
Posts: 10
I want to call the the procedure from Embedded SQL file. I want to use the structure sqlda which is declared in sqlda.h

I have already created sqlda structure for procedure ,but don't know how to use that in calling stored procedure.

Like--
begin
procedure_name(param 1,param 2...);
end;

in place of (param 1,param 2...) ,I want to use sqlda structure.
Reply With Quote
  #4 (permalink)  
Old 12-22-11, 10:27
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,416
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On