How can we insert 100 records @ a time without using for loop into the databse

Answer Posted / varsha motwani

You can use "Update()" method of DataAdapter which will
accept Dataset


DataAdapter.Update Method (System.Data.Common).
This will internally call loop for insertion and it will
hit the database evry time for each record.
Another way is to aceppt input as string and pass record in
form of XML and parse the XML in stored procedure and
perform Insert

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three types of predicates?

626


Write the difference between TypeOf and GetType?

778


What is var c#?

673


Why static constructor is parameterless in c#?

770


Does main have to be static c#?

721


What is readline c#?

655


What does namespace mean?

694


Can we override constructor in c#?

691


What do you mean by the delegate in c#?

680


What is difference between ilist and list in c#?

657


What is bitwise operator in c#?

676


What are the benefits of using generics?

683


Give examples for value types?

698


What type is string in c#?

636


What is the use of static members with example using c#.net.

683