Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I need a stored procedure inserting multiple rows at one button click.

Please give the code.

Table name :tbl_StudetntRights
params : stdid,subjectId

If i want to insert 1 1
1 2
1 3
Thanks in advance
Posted
Updated 5-Feb-11 1:42am
v2
Comments
TweakBird 5-Feb-11 7:43am    
Avoid asking for code without trying and showing your effort.

check here[^]
 
Share this answer
 
In addition to mkgoud's Answer:

The logical thing to do is to pass Array/List to your store procedure. But, store procedure do not have a support for Array/List parameter handling. Thus you will need to come up with other innovative solutions. There are several way of doing this, take a look at this post[^].
 
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