Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?

969


What is enumerable in c#?

866


What do u mean by delegation?

919


Is as keyword in c#?

847


What is executenonquery c#?

857


What is meant by collections in c#?

833


What is predicate builder?

905


Why do we use static class in c#?

900


Is datetime immutable c#?

904


Why do we use delegates?

832


What are the types of constructors?

895


How do you pronounce c#?

871


List some of the classes used by system.data namespace?

814


windows c# using datagridview in edit form sql server

4070


What is executescalar in c#?

838