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

Does the variables of a private class-level inherited?

549


What is hashset c#?

484


What is .cshtml file?

487


What is a console application in c#?

437


What is the difference between as and is operators in c#?

425






How to override a function in c#?

532


What is an Interface in C#?

529


Explain use of abstract and sealed classes in c#?

449


What the different phase/steps of acquiring a proxy object in webservice?

456


What is difference between === and ==?

455


Can a constructor be private in c#?

469


What is exe in c#?

483


What is method overriding in c#

589


What is the delegate in c#?

480


What is difference between events and delegates?

476