Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can we create a stored procedure in sql 2005 which accepts multiple rows, reads and inserts values in a table.
And, How can we call that procedure in vs.net 2008?
Posted
Updated 20-Dec-11 21:02pm
v2

The approach discussed at Passing an array or DataTable into a stored procedure[^] should help you out.
http://support.microsoft.com/kb/555266[^] might give you some ideas as well.
 
Share this answer
 
Hi,

please follow below articles for your query

Passing Multiple row in SP

Execute SP from c#

hope this will help you,

thanks
-amit.
 
Share this answer
 
You need user defined table types :

http://msdn.microsoft.com/en-us/library/bb522526.aspx[^]

And its usage is this :
http://msdn.microsoft.com/en-us/library/bb510489.aspx[^]

Hope it helps.
 
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