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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:49:29+00:00 2026-05-27T11:49:29+00:00

I have a MS sql database (not server), my program reads file structure from

  • 0

I have a MS sql database (not server), my program reads file structure from my 2 TB external drive and saves the list a records in database. I write around 80k records every time and it takes a great time.

I am currently writing records by dividing them into 2 background Worker thread 40k each. My pc is Quad core Phenom II.

What is the best way to achieve this and also would there be any benefits by increasing the number of threads because mine is only a 7200rpm hdd and not raid. What I mean is HDD might be a limitation?

Thank you.

Edit: Time is write all records is around 15-18 mins.I am not using stored procedures. I am using the insert command from the auto generated table adapters only. I am looping the insert statement 40k times for each thread. No, not updating based on indexed file, they are just insert statements.

  • 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-27T11:49:29+00:00Added an answer on May 27, 2026 at 11:49 am

    80k records shouldn’t take a ton of time. You say a “great time” but what is it actually? We have no idea of your relative term’s actual time.

    1) are you using stored procedures?
    2) Is it something that can be handled in bulk (BCP or with many insert/update statements generated and sent in a single command)?
    3) Are all updates using indexed fields in the WHERE clause?

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

Sidebar

Related Questions

I have a SQL Server 2000 database that will not display the column list
(Note: This is for MySQL's SQL, not SQL Server.) I have a database column
I have a 5GB database and a 20GB transaction log (SQL Server 2005). Not
I have setup multiple SQL Service Broker Queues in a database but have not
I have sql database stored on a shared netwrok drive , after set of
We have SQL Server database setup. We are setting up a replication scenarios where
I have a database (sql 2008 mdf file), a class library project with an
I created a C#.net app that uses dates from a SQL Server 2008 database
I have a sql server 2005 database that I want to setup replication for.
I made a program many years ago, that connects to a SQL Server database

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.