passing Associative Arrays to oracle SP from c#
-
Tuesday, June 12, 2007 10:54 AM
Can some one please tell me how to send a Associative Array as a parameter to
a oracle stored procedure from c#......I am using System.Data.OracleClient
....please give your suggestions its urgent.....
Thanks.
All Replies
-
Friday, June 29, 2007 4:51 AM
Hello Kay,
I looking for the same thing. Please, let me know if you have already found a solution.
Thanks,
Darcy -
Friday, June 29, 2007 9:28 AMSomething like the example in http://www.timvw.be/using-a-collection-as-parameter-for-a-stored-procedure/ ?
-
Tuesday, March 04, 2008 3:25 PM
Ok, that works if the associative array is of a primitive type, like NUMBER. But what if the associative array is of a RECORD type defined in the package? Anyone can help me???? I am trying to do this but still don't know how...
Cheers,
Gabriel Feldman
-
Tuesday, March 04, 2008 8:00 PM
If you are using ODP.NET try the link below for existing code from Oracle, the problem comes from the Oracle associative array and the .NET associative array are not the same. Oracle promised to fix it but just provided support in ODP.NET.
http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
-
Wednesday, March 05, 2008 9:33 AM
Hi,
I have seen this link before, but it uses primitive types in the array.
My question is if I have a procedure in Oracle that receive a parameter of type MyArray where MyArray is defined as follows:
TYPE MyRecord IS RECORD (FieldA NUMBER, FieldB NUMBER);
TYPE MyArray IS TABLE OF MyRecord INDEX BY BINARY_INTEGER;How can I invoke from C# a procedure that has an argument of type MyArray defined above? After looking for a while on the web and trying by myself I am quite sure now there is no support at all in .Net to invoke such a procedure...
Please let me know if I am wrong!!Thank you,
Gabriel Feldman
-
Wednesday, March 05, 2008 2:31 PM
So you are not looking for data access code but more like native C# in Oracle, I don't think that is what Oracle or Microsoft want you to do.
-
Wednesday, October 15, 2008 3:28 PM
Did You got solution for this if Yes please post it
I am getting same problem.
I have VARRAY of type Object and need to pass value from c#
-
Friday, March 06, 2009 8:51 PM
Hi,
Did you find any way to pass custom type using ODP.Net?
Like the example that you shared earlier....
TYPE MyRecord IS RECORD (FieldA NUMBER, FieldB NUMBER);
TYPE MyArray IS TABLE OF MyRecord INDEX BY BINARY_INTEGER;I am also trying to do the same thing but not able to find out how to do this.
-
Thursday, March 12, 2009 6:04 PMModerator
The Microsoft OracleClient C# driver does not have support for tables or record or arrays.
I would check with Oracle to see if their NDP driver supports this.- Proposed As Answer by Matt Neerincx [MSFT]Moderator Thursday, March 12, 2009 6:06 PM
- Marked As Answer by Young Gah Kim - MSFT Thursday, March 12, 2009 6:09 PM
-
Saturday, March 14, 2009 11:23 PM
OPD.Net provides method to pass User Defined Data Type (UDT) and arrays too...Have a look at the following article it may help you
http://www.oracle.com/technology/oramag/oracle/08-may/o38net.html- Proposed As Answer by nimesh.dhruve Saturday, March 14, 2009 11:24 PM
- Marked As Answer by Young Gah Kim - MSFT Thursday, March 19, 2009 3:58 PM
-
Wednesday, September 01, 2010 8:05 PM
Yes ODP.NET provides this functionality to pass .NET objects. More on this topic at the following link...
http://appsjack.blogspot.com/2010/09/pass-custom-udt-types-to-oracle-stored.html
Let me know if this helps.
-
Sunday, August 14, 2011 2:10 AM

