Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone.
Can i pass my datatable filled with n no. of values , as a input parameter to a stored procedure?
my database is oracle.
Any suggestion or links are welcomed.
Posted

 
Share this answer
 
fill all values in a string from data table and then pass it to store procedure like

string val="";
    for (int i = 0; i < DataTable.Rows.Count; i++)
                {                    

                  val+= DataTable.Rows[i]["ColumnName"].tostring() + ",";
                }
 
Share this answer
 
v2
Comments
vaibhav mahajan 4-Jun-14 6:26am    
it has some limitation.

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