Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
cmd.Parameters.Add ("arr", OracleDbType.Int32 );
cmd.Parameters["arr"].CollectionType = OracleCollectionType.PLSQLAssociativeArray;
cmd.Parameters["arr"].Direction = ParameterDirection.InputOutput;
cmd.Parameters["arr"].Value = x;
cmd.Parameters["arr"].Size = 3;
cmd.Parameters["arr"].ArrayBindSize = new Int32[3];

cmd.Parameters.Add("v", OracleDbType.Varchar2 );
cmd.Parameters["v"].CollectionType = OracleCollectionType.PLSQLAssociativeArray;
cmd.Parameters["v"].Direction = ParameterDirection.InputOutput;
cmd.Parameters["v"].Value = zx;
cmd.Parameters["v"].Size = 3;

cmd.Parameters ["v"].ArrayBindSize= new string [3]; -- i have proplem in this line Error 1 Cannot implicitly convert type 'string[]' to 'int[]'
anyone help me plz
Posted
Updated 22-Sep-10 5:06am
v2

1 solution

Well, ArrayBindSize takes Integer array.

A sample example:
C#
param.ArrayBindSize = new int[param.Size] { 36, 36, 36, 36 , 36};
 
Share this answer
 
Comments
Mostafa Elsadany 23-Sep-10 8:06am    
this parameter is varchar2 ok
if in this case : param.ArrayBindSize = new int[param.Size] { 36, 36, 36, 36 , 36};
give me error type

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900