0

I have a timestamp column (updated) in my Microsoft Sql Server Database and wish to retrieve the value as a DateTime object using SqlConnection and SqlCommand.

What is the easiest way to do this?

1 Answer 1

5

A timestamp field in a SQL Server database is not related to the date and time, but is merely a sequence number.

A timestamp in MySql is on the other hand a datetime-value.

Sign up to request clarification or add additional context in comments.

2 Comments

Could be usefull then with a solution on how to change the MSSQL DB to cope with timestamps like MsSQL
You define your own DATETIME-field, and remember to update this field whenever you change the content of the row. This is done automatically with MSSQL timestamp field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.