PDA

Click to See Complete Forum and Search --> : Timestamp datatype in SQL 7


JackV
Jun 19th, 2000, 04:59 AM
I have a timestamp in one of my tables and I was wondering is there anyway to translate the value (ex. 0x00000000000000DC) that SQL 7 stores in the field into a legible date and or time.

Thanks,
Jack Vinitsky

JHausmann
Jun 19th, 2000, 07:22 AM
A table of yours or a system table?

Clunietp
Jun 19th, 2000, 08:58 AM
The Timestamp data type is a binary field and is NOT an actual Date/Time stamp. It is a unique value within your database and is updated whenever the record is inserted or updated.

This field is often used to determine if a record has been updated by one client while another client is about to edit/update that same record. If the value in the timestamp field does not match that which is in the ADO recordset, then your record needs to be refreshed.

There was a nice article in VBPJ a few months back, and they explained how to use the timestamp data type so you can have multi-user apps WITHOUT locking any records

JackV
Jun 19th, 2000, 08:42 PM
The field is in one of my tables. But since it's a binary field I guess I can't do much with it directly.

Thanks for the info guys I appreciate it.

-Jack