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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:19:45+00:00 2026-05-24T07:19:45+00:00

We have a multiuser system with users saving to a central SQL Server 2005

  • 0

We have a multiuser system with users saving to a central SQL Server 2005 database. We have encountered an issue where a user refreshes in changes from the db while another user saves new data. The way we are currently collecting the changes is we have a timestamp column on each table which is filled at every row insert/update. Another user will have a timestamp stored on the client which is the last time he did a pull from the database.

Each save is done in a transaction. The example we are dealing with is as follows:

  • User1 starts a save, opening a transaction and inserting/modifying rows, changing their timestamps.
  • User2 refreshes from the database before User1 has committed the changes, somehow causing User2’s timestamp to update.
  • User 1 commits the transaction and all changes.
  • User2 refreshes from the database again, however because his timestamp was updated previously, only the second half of the changes committed by User1 and pulled in causing errors and application crashes.

This is making us think that timestamps aren’t necessarily the best method to use to determine database changes since the last access by the front-end system. What would a better solution be?

Further example

  • User1 starts a save, opening a transaction and inserting/modifying rows and updating their timestamps.
  • User2 starts another save, opens a transaction, inserts/modify OTHER rows updating their timestamps, and commits his transaction.
  • User3 refreshes from the database and pulls down all the data that User2 committed, updating his LastRefreshTimestamp to the last timestamp created in the db by User2.
  • User1 commits his transaction.
  • User 3 refreshes again from the database but is pulling all changes between the end of User2’s transaction and the end of User1’s transaction based on its LastRefreshTimestamp, missing out on all the changes committed by User1’s transaction before User2’s transaction began.
  • 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-24T07:19:46+00:00Added an answer on May 24, 2026 at 7:19 am

    Interesting problem, and I can’t think of a simple clean T-SQL-based solution, but this is exactly the type of synchronization challenge that Change Tracking in SQL 2008 was created for… http://msdn.microsoft.com/en-us/library/bb933875.aspx

    Nice very-high-level overview of change tracking vs Change Data Capture in this blog/article: http://blogs.technet.com/b/josebda/archive/2009/03/24/sql-server-2008-change-tracking-ct-and-change-data-capture-cdc.aspx

    And you can potentially combine this with Microsoft Sync Framework if your general aim is to keep client-side copies of the repository: http://msdn.microsoft.com/en-us/sync/bb887608

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

Sidebar

Related Questions

I have a multi-user ASP.NET app running against SQL Server and want to have
imagine we have a client/server multiuser architecture. At any time a user is able
I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users
Have you ever seen any of there error messages? -- SQL Server 2000 Could
I'm connecting to a legacy database that is our ERP system. I have a
I'm searching for a multiuser web-based calendar system that supports multiple users. I'm looking
I am building a multiuser WPF application (requirement is a desktop app), database SQL
The goal I would love to have a multi user system (based on linux)
I wrote a multi user app in c# some time age using SQL Server
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a

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.