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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:07:17+00:00 2026-05-13T11:07:17+00:00

For the purpose of organizing streamlined database timer-based polling, with every updating of database

  • 0

For the purpose of organizing streamlined database timer-based polling, with every updating of database table I need to update a timestamp field in a SQL Server 2008 database (then poll, read its value, compare with the value in front-end and making decisions about reading the whole table).

Regarding all this, how I could read system time for writing timestamp? What data format of SQL Server field to use (DataTime or Time)? And how values of this format could be compared?

  • 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-13T11:07:17+00:00Added an answer on May 13, 2026 at 11:07 am

    Are you talking about a database column of TIMESTAMP type??

    Those are binary timestamp that SQL Server will update internally – they have nothing to do with date and/or time – it’s just a binary-encoded counter, really. These fields are handled by the system, and they’re reliable and very accurate – if you want to have some kind of an optimistic concurrency locking mechanism, use this field type.

    If you want a DATETIME field containing a date and time of the last modification, you’re best option would be to have a AFTER INSERT/AFTER UPDATE trigger on that table which sets the last updated column to the current date/time of the SQL Server automatically, without you having to do anything about it.

    DATETIME in SQL Server 2005 is accurate to about 3.33ms – in SQL Server 2008, DATETIME2 can be made accurate to 100ns, if needed. As such, do not rely on a DATETIME column for 100% accurate checking whether something has changed or not! The 3.33ms accuracy might give misleading results!

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

Sidebar

Related Questions

Is there a way to simply create folders in umbraco 4 for the purpose
I have an email account whose sole purpose it is to store interesting and
Purpose is to have the opacity event trigger when the form loses focus. The
Purpose I'm writing a small library for which portability is the biggest concern. It
Purpose I am writing a network program in C (specifically gnu89 ) and I
I am currently teaching myself about various data strutures and am a little frustrated
I am starting to redesign and develop a site that contains a lot of
I'm interested in learning about the available choices of high-quality, stand-alone source code formatters
I am about to attempt reorganizing the way my group builds a set of

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.