Batch update in c#

Posted on 2009-12-20
Last Modified: 2012-05-08

I am working in 3.5 using C#

How do we do batch update in

I have sql strored, where I need to pass parameters and then sql stored proc do it job fine

Please guide me how do I do batch update in C#

Question by:tia_kamakshi
    LVL 11

    Accepted Solution

    if you're using ADO.NET 2.0 you can set the UpdateBatchSize of your SqlAdapter to set the number of items to update at the same time. Here is the msdn ressource about this with a simple example:
    LVL 5

    Expert Comment

    Batch Updates in ADO.NET 2.0 for Improved Performance
    LVL 11

    Expert Comment

    above post is refering to the exact same material, only a different example of the same thing.

    Author Closing Comment

    Many Thanks for your help

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now