execute Procedure in Oracle...?

execute Procedure in Oracle...?

Postby Mulyadi » Tue Feb 19, 2013 8:29 am

To all

I want to execute a procedure or function in oracle.
any one can posting sample here...?


TQ.

Mulyadi.
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am

Re: execute Procedure in Oracle...?

Postby Mulyadi » Wed Feb 20, 2013 12:45 am

Halooooooo........

I create a Procedure or Function or Sequence in Oracle,
but i dont know how to execute it with FWH.....

Muyadi.
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am

Re: execute Procedure in Oracle...?

Postby nageswaragunupudi » Wed Feb 20, 2013 10:31 am

I assume you are using ADO
Simple stored procedure without paramters:
Code: Select all  Expand view
  oCmd     := TOleAuto():New( "ADODB.Command" )
   WITH OBJECT oCmd
      :ActiveConnection    := oCn  // Connection object already created
      :CommandText         := <StoredProcName>
      :CommandType         := adCmdStoredProc   // Value is 4
   END
   // Assuming there are no paramters for the stored procedure
   
   // Execution
   oCmd:Execute()
 


I recommend reading ADO in w2schools.com
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: execute Procedure in Oracle...?

Postby Mulyadi » Thu Feb 21, 2013 3:32 am

Thanks Mr Nages.

I try it and i posting the result later...
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests