Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 508015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:51:49+00:00 2026-05-13T06:51:49+00:00

As We are working on a asp .net project there three ways one can

  • 0

As We are working on a asp .net project there three ways one can update data into database when there are multiple rows updation / insertion required

Let’s assume we need to update employee education detail (which could be 1,3,5 or 10 records)

Method to Update Data

  1. Pass value as parameter (Traditional approach), If 10 records are there then 10 round trip required

  2. Pass data as xml and write logic inside your stored procedure to get that data from xml and update the table (only single roundtrip required)

  3. Use Table valued parameters (only single roundtrip required)

Note : Data is available as List, so i need to convert it to xml or any other format if i need to pass.

There are no. of places in entire application we need to update data in bulk (or multiple records)

I just need your suggestions that

  1. Which method will be faster (please mention if there are some other overheads)

  2. Manageability or testability concern with any approach

  3. Any other bottleneck or issue with any of the approach (Serialization /Deserialization concern or limit on size of the data passing)

  4. Any other method you suggest for same operations

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:51:49+00:00Added an answer on May 13, 2026 at 6:51 am

    The Table-Valued Parameter approach will most likely be the best approach, since you can update a whole batch of rows at once; after all, you get a table which you can join against easily.

    The other approaches both are either row-by-row which is inherently slower, or require a fair bit of mucking on the SQL Server side of thing; this is not only not really fun, usually, but also more error-prone and typically less performant than just simply joining two tables.

    This is exactly the scenario the TVP have been introduced for – to solve that “row-by-row” or “messing-around-with-XML” problem. I would believe there’s a good reason for Microsoft to introduce this, and if they do, you should definitely give it a good try and see if it works.

    But again: that’s just a “gut feeling” without really knowing all your details. Only you can really find this out, for yourself, by testing all three options. There are a plethora of other effects and parameters that might come into play that anyone answering can’t possibly know….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 243k
  • Answers 243k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Is there a way to get the actual bounding box… May 13, 2026 at 7:47 am
  • Editorial Team
    Editorial Team added an answer If you want classes and inheritance in Javascript, have a… May 13, 2026 at 7:47 am
  • Editorial Team
    Editorial Team added an answer Apple's documentation is the best place to look. That link… May 13, 2026 at 7:47 am

Related Questions

The standard template for ASP.NET MVC (and MVC in general) seems to be {controller}/{action}/{id}
I'm currently working on a high-traffic online search site. They have various changes they
We are contracting an external consultant out to generate XHTML (Transitional) and CSS for
I read a lot of good things about jqGrid on SO and would like
I have a WPF application in VS 2008 with some web service references. For

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.