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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:25:51+00:00 2026-05-13T06:25:51+00:00

I have really odd user requirement. I have tried to explain to them there

  • 0

I have really odd user requirement. I have tried to explain to them there are much better ways of supporting their business process and they don’t want to hear it. I am tempted to walk away but I first want to see if maybe there is another way.

Is there any way that I can lock a whole database as opposed to row-lock or table-lock. I know I can perhaps put the database into single-user mode but that means only one person can use it at a time. I would like many people to be able to read at a time but only one person to be able to write to it at a time.

They are trying to do some really odd data migration.

  • 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-13T06:25:51+00:00Added an answer on May 13, 2026 at 6:25 am

    What do you want to achieve?

    • Do you want to make the whole database read-only? You can definitely do that
    • Do you want to prevent any new clients from connecting to the database? You can definitely do that too

    But there’s really no concept of a “database lock” in terms of only ever allowing one person to use the database. At least not in SQL Server, not that I’m aware of. What good would that make you, anyway?

    If you want to do data migration out of this database, then setting the database into read-only mode (or creating a snapshot copy of it) will probably be sufficient and the easiest way to go.

    UPDATE: for the scenario you mention (grab the data for people with laptops, and then re-syncronize), you should definitely check out ADO.NET Sync Services – that’s exactly what it’s made for!

    Even if you can’t use ADO.NET Sync Services, you should still be able to selectively and intelligently update your central database with the changes from laptops without locking the entire database. SQL Server has several methods to update rows even while the database is in use – there’s really no need to completely lock the whole database just to update a few rows!

    For instance: you should have a TIMESTAMP (or ROWVERSION) column on each of your data tables, which would easily allow you to see if any changes have occured at all. If the TIMESTAMP field (which is really just a counter – it has nothing to do with date or time) has not changed, the row has not changed and thus doesn’t need to be considered for an update.

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

Sidebar

Related Questions

I have been having these really odd problems with Visual Studio 2010. At this
Something really odd going on here, and I have gone round in circles trying
I have a really odd behavior here: I created a little popup dialog in
I have a really odd issue with WMI that I'm running into on a
I have a really odd problem. I am using an upload form to upload
I have a really odd issue with an ItemRenderer. I have a main.mxml container
I asked a similar question yesterday, but have acquired a really odd problem since
This is a really odd issue because I can't give much explanation here. I
My question is a bit odd, but it really annoys me... I have an
I have a really odd problem. I have 3 tables. Positions PositionAttachments Attachments I

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.