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 7982609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:43:23+00:00 2026-06-04T10:43:23+00:00

I need to process records from a table and need to log the outcome

  • 0

I need to process records from a table and need to log the outcome of processing of each record. One can pass a datatable to a stored procedure instead to insert all of them by using ADO.NET SqlDbType.Structured (more info here). I need to build that datatable and then pass to the stored procedure. Would this approach still optimal with more that 12k rows (for the datatable) inside a Windows service? I am afraid this might consume too much memory on the server?
Not sure If I can build the datatable in batches and pass them to the stored procedure in this scenario.

EDIT :- In those 12K rows, there are no huge blobs on each row. It would be guid (Id), string (status) and string(ErrorMessage, If any) on each row.

Any advice or suggestion would be helpful.

  • 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-06-04T10:43:25+00:00Added an answer on June 4, 2026 at 10:43 am

    Table-Valued Parameters should be fine for 12K rows, even if the occasional status / error message values are longer.

    Of course, you could always try it, since there are a lot of variables that may impact whether performance is acceptable, and we can’t possibly account for all these variables that are specific to your environment, the application, and any extraneous apps or processes.

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

Sidebar

Related Questions

I have some database table and need to process records from it 5 at
I have a table that will have 500,000+ records. Each record has a LineNumber
I need to delete some records from table and then insert some records to
I have a basic/simple need to create a pipeline transfer process from one SQL
I need to issue multiple $.get requests, process their responses, and record the results
I need to process the incoming predefined ASN format data(coming from verity of clients
I have a table with three fields, one an identity field, and I need
I have to extract two random records from a table. I have implemented something
I have a table in my database in which records conceptually can be children
I have table ,and i need access them from shell script and do the

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.