stoed proc for oracle

From: Marcus Lloyd (MarcusLloyd_at_discussions.microsoft.com)
Date: 01/28/05

  • Next message: dauster: "Re: Access 2000 and VB 6"
    Date: Fri, 28 Jan 2005 12:27:03 -0800
    
    

    Hi,

    I would like to call a stored proc from Oracle. I have created the procedure
    in Oracle and the connection to the database.

    the code i've done is as follows:

    OraStoredProc

     (
            v_doc_no in varchar2,
            v_basic_part_no in varchar2,
            v_bill_qty in number
            )
    as
    begin
            update bill_detail_analysis
            set BILL_QTY = v_selfbill_qty
            where DOCUMENT_NUMBER = v_doc_no and BASIC_PART_NO = v_basic_part_no;
            commit;
    end;

    I would like to pass and update the qty field, also with the parameters.

    OpenOracleConnection ora
    ora.CursorLocation = adUseClient
    cmd.ActiveConnection = ora
    cmd.CommandText = _
        "{CALL live.bill_update ({'AA-AA-AAAA','AA-AA -AAAA',10})}"
    cmd.CommandType = adCmdStoredProc
    cmd.Execute , , adExecuteNoRecords

    I keep getting an error, can anyone help.

    cheers

    Marcus


  • Next message: dauster: "Re: Access 2000 and VB 6"

    Relevant Pages

    • RE: ADO.Net Connection Pooling Problem with Oracle
      ... the CLR is releasing the connection to your database. ... the number of database sessions in Oracle seem to ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: Connecting to an Oracle Database
      ... You can also use FrontPage, ... Click Add to Catalog under "Database Connections" ... Put in your Oracle connection string in the custom connections dialog ...
      (microsoft.public.sharepoint.windowsservices)
    • RE: Query Oracle, show results (need help!!)
      ... After the DB connection, put this... ... I am trying to log into an Oracle database, ... Prepare the SQL statement for running and it'll be stored in Oracle buffer ...
      (perl.beginners)
    • ADO connection to Oracle
      ... the runtime version, however, the program terminates with no error ... The program always stops at the connection to the database. ... connection is made using generic OLE DB, not the Oracle data provider. ...
      (microsoft.public.vb.database.ado)
    • Re: Oracle Database Access via IIS 6.0 ASP Pages on Windows 2003 Serve
      ... What type of connection are you using? ... what you are saying is something similar to: "my car doesn't ... I am using the Microsoft's ODBC Driver for Oracle ... > connection to an Oracle database. ...
      (microsoft.public.inetserver.iis)