Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
4.67/5 (2 votes)
See more:
Hello !

Good Day to All,

I am working in VB.NET 2010 with SQL Server 2014

I want to store the Data having multiple Records From a DataGridView to a Database Table of SQL Server 2014 Through a Stored Procedure using a single insert command.

Can anyone figure it out ?

Thanks in advance !

Regards:
Muhammad Asim Mughal

What I have tried:

I did not tried it yet because i don not have any idea for this.
Posted
Updated 7-Apr-16 19:12pm

Hello ,
a very good article found here :
Sending a DataTable to a Stored Procedure

Thanks
 
Share this answer
 
A Stored Procedure can have a Table-Valued parameter - refer to the below link;
[MSDN - Table Valued Parameters]
 
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