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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:52:11+00:00 2026-05-27T10:52:11+00:00

We have moved our application away from using EntityFramework 4.2 and a couple of

  • 0

We have moved our application away from using EntityFramework 4.2 and a couple of other commercial ORM products to ADO.NET for the performance reason, and It does prove the purpose.

but we have faced a problem that is the datatype timestamp.

in EF, we put a column with timestamp datatype in each of our table and we enable EF to use this column for versioning,

now, we are using ADO.Net with dataset/datatable, I’m not sure how to initialize a new value for timestamp column to each new row added to a datatable.
here is one of the error.
Column ‘RECVERSION’ is constrained to be unique. Value ‘System.Byte[]’ is already present.
we could disable the constrain, but we would like to have this constrain for row version
Question:
How do we have some kind of automatic initialize a new value for the timestamp in a disconnected dataset/data table environment?
Thanks

  • 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-27T10:52:12+00:00Added an answer on May 27, 2026 at 10:52 am

    The column of type TIMESTAMP (or ROWVERSION as of SQL Server 2008) will always be handled automatically by SQL Server.

    And cannot and must not insert any values into it. Just leave it alone! You should just select it to detect when a row has been changed between the time you read it, and the moment you’re trying to update it.

    Do not attempt to insert or set this value! Just exclude it from any of your SQL INSERT or UPDATE statements. SQL Server does all the work for you.

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

Sidebar

Related Questions

I have moved a component of our application from a webservice to a Windows
Our application is using ASP.net MVC and we have a question on what happens
I have just moved job and gone from VB 6 to VB.Net and found
We just moved our application from a MDI container to a single document interface.
We currently have developed an application using WCF. Our clients make connections to different
We're in the process of moving our .NET platform from using MSMQ to ActiveMQ.
We moved our Visual C++ 2003 solution to Visual 2005 and now we have
can anyone help. I have recently moved servers, its IIS7 rather that our previous
I have moved my iPhone app from one machine to another. In the process
I have moved my classes from a global namespace into a specific namespace. 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.