Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all,

my project is based on three tier architecture i am using stored procedure to insert, delete and update the data. project using a table that contains two columns(X,Y) :
i have to insert four rows at a time with different value on single insert using stored procedure. i have created property array[] in C#.net now how to pass these array values from front end and receive in stored procedure.


Thanks in advance,

Sudhir Srivastava
Posted
Updated 24-Jun-11 21:10pm
v3

1 solution

Take a look at the following support article. It suggest how to pass array to sql server stored procedure.

How to pass array of values into SQL Server stored procedure using XML and Visual Basic .NET[^]

Other alternate is to have a usual stored procedure. Initilize the command object with the stored procedure parameter. You can call execute in a loop setting the parameter values each time. This based on the requirements should be in the scope of a single transaction.
 
Share this answer
 

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