1

is there any way to insert in bulk (i mean all gridview rows) to sql server database in single submit. its an ASP.Net app and I also want to validate data.

4

2 Answers 2

2

Have a look at using SqlBulkCopy Class

Sign up to request clarification or add additional context in comments.

Comments

0

In oracle we have batch insert for example

your query returns two rows with column name as a,b,c

a:b:c
1:2:3
4:5:5

you can use

insert into tab_name(a,b,c)(qry)
commit;

Make it dynamic and it should work.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.