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

  • SEARCH
  • Home
  • 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 6991863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:33:35+00:00 2026-05-27T19:33:35+00:00

In situations where a .Net Aspx Page or Web Service requires to do approximately

  • 0

In situations where a .Net Aspx Page or Web Service requires to do approximately 20-200 row inserts into a table, which of the following approaches would you recommend and why? Small performance gains will likely mean I’ll still use the method that I am most familiar with, so please tell if its not going to make much of a difference. Any general guidance as to when it really makes sense to use one over the other would be appreciated.

  1. Table Valued Parameters
  2. SqlBulkCopy Class
  3. XML Parameter in a Stored Procedure and Using XQuery
  4. Twenty to Two Hundred Individual Insert Stored Proc Calls

Other Notes: The amount of logic processing required for each Insert varies, but it can be assumed that little will be required. I’m mostly interested if there could be a significant amount of performance / ease of use / other benefit to one of the four choices for these tiny batch inserts that will be iterated dozens to hundreds of times per day.

  • 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-27T19:33:36+00:00Added an answer on May 27, 2026 at 7:33 pm

    For such a small amount of rows I would personally go with Table Valued Parameters – that’s one of the best uses for them.

    I SqlBulkCopy as more of a workhorse for much larger amounts of data and for multiple tables.

    XML parameters would be very processors intensive and XML is still not as native to SQL Server as TVPs are.

    Multiple inserts is the worst option by far – 200 connections, 200 transactions etc…


    The real answer regarding which option performs best depends on your particular situation. You need to test all of the approaches and go with the best one for you.

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

Sidebar

Related Questions

I'm using .NET typed datasets on a project, and I often get into situations
I have the following situation on my new ASP.Net page: I am using a
Actually my objective is; Create asp.net web service (namespace ws, class Service1) Create dll
I have a .net web service that takes some xml data. From within the
My Situation: I have 1 asp.net application with both aspx pages AND webservices I
Using ASP.NET MVC there are situations (such as form submission) that may require a
When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations
Say I'm extending a TextBox called CustomTextBox in .net. In certain situations I would
Consider the following situation: WidgetCompany produced a .NET DLL in 2006 called Widget.dll, version
i'm beginning with web forms in asp.net and i just want a simple example

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.