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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:35:58+00:00 2026-05-14T00:35:58+00:00

We have about 7 app servers running .NET windows services that ping a single

  • 0

We have about 7 app servers running .NET windows services that ping a single sql server 2005 queue table and fetch a fixed amount of records to process at fixed intervals. The amount of records to process and the amount of time between fetches are both configurable and are initially set to 100 and 30 seconds initially.

Currently, my queue table has an int status column which can be either “Ready, Processing, Complete, Error”. The proc that fetches the records has a sql transaction with the following code inside the transaction:

1) Fetch x number of records into temp table where the status is “Ready”. The select uses a holdlock hint

2) Update the status on those records in the Queue table to “Processing”

The .NET services do some processing that may take seconds or even minutes per record. Another proc is called per record that simply updates the status to “Complete”. The update proc has no transaction as I’m leaning on the implicit transaction as part of the update clause here.

I don’t know the traffic exceptions for this but figure it will be under 10k records per day.

Is this the best way to handle this scenario?
If so, are there any details that I’ve left out, such as a hint here or there?

Thanks!
Dave

  • 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-14T00:35:59+00:00Added an answer on May 14, 2026 at 12:35 am

    Use UPDLOCK with READPAST.

    Related answer here on StackOverflow…

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

Sidebar

Related Questions

I have a .NET console app running on Windows Server 2003, as a scheduled
I have a complex .NET Remoting server app that provides a couple of services.
I have an ASP.NET page hosted on IIS6 running in windows 2008 server. The
We have a single ASP .NET application running on a single web server (no
I have a ASP.NET application that connects to a SQL server backend on another
So I have few ASP.NET apps all running off SQL Server Express 2008 and
Disclaimer: I'm completely clueless about .net and COM. I have a vendor's application that
I have recently purchased some new windows server 2008 boxes all running IIS7. I
I have an MVC web app running in azure that serves up large files
I am building a .NET 3.5 Winforms app that uses WCF services (wsHttp binding)

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.