Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Passing datatable from C# to Oracle.

Passing datatable from C# to Oracle.

From: Vish <vishalk7_at_gmail.com>
Date: 28 Sep 2006 02:55:12 -0700
Message-ID: <1159437312.614392.198980@m7g2000cwm.googlegroups.com>


I have already posted a similar message earlier and but posting again for this specific requirement.

I have a C# application which uses ODBC.net(System.Data.OracleClient) to insert records in oracle database. In order to improve performance of our system, I need to use FORALL bulk insert option provided by Oracle.
I have written a stored procedure which will accept table object defined in the Proc.
I don't know how to pass a .Net DataTable from C# application to the oracle stored procedure.

Here is the sample.

create or replace package BookAlloc_Pck is

create or replace package body BookAlloc_Pck is procedure prc_load_alloc_records(Alloc_in IN Alloc_Details_t) is begin

        forall i in 1.. Alloc_in.count

                insert into allocationdetails values Alloc_in(i);                         

                commit;

end prc_load_alloc_records;
end BookAlloc_Pck;

Thanks Received on Thu Sep 28 2006 - 04:55:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US