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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:54:46+00:00 2026-05-13T15:54:46+00:00

I have a C# application with NHibernate that must do some operations over a

  • 0

I have a C# application with NHibernate that must do some operations over a SQL Server DB.

Our goal is to run this app multiple times in the same machine and also in other machines.

Actually app insert a row in a SQL Table and check if the first row with minimum date is the row with the correct PID and machine name so the app set the lock and do the work.

We have problems with this logic because app must also delete lock of other apps if the app that retain the lock is crashed.

Any hint about changing the lock architecture?

The problem is that app can run over multiple machines.

  • 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-13T15:54:46+00:00Added an answer on May 13, 2026 at 3:54 pm

    How about managing the lock in the DB? You can have a table/stored procedure, where each running instance registers to, gets a unique id, and uses the stored procedure to do lock&free. (Same technique as preventing multiple logins for a single user from several machines).

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

Sidebar

Related Questions

We have an application that uses NHibernate to connect to our database on SQL
We have an application that currently supports Oracle and SQL Server databases. We're in
Say I have an application that used an ORM (I am thinking of nHibernate
I have a WPF Application using Fluent NHibernate 1.0 RTM and System.Data.SQLite 1.0.65 that
I have an ASP.NET MVC application that uses Fluent NHibernate and AutoMapper. I am
I have an asp.net mvc2 application that is using StructureMap 2.6 and NHibernate 3.x.
I have an application that uses Hibernate. It generated the following SQL statement. I
I have this WPF application using NHibernate and lazy data loading. I also use
Scenario: I have an application that pulls data from a SQL database as well
I have an MVC/Nhibernate app that is giving me the below. [WrongClassException: Object with

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.