Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alternate column name for [timestamp] type 1

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
I need to add an auto-updating timestamp column to a vendor-supplied table. Unfortunately, the vendor already has used the [timestamp] name for a custom-column (using the datetime type). If I create a column with a different name, but still use the timestamp type, will SQL still auto-update this field for me?
In other words, when SQL updates a row, does it look for any column with a timestamp type, or specifically for a column named [timestamp] with a timestamp type?
-thanks
 
Give it any name you like...

Because it is, i usually call it "rowversion".

i.e. Timestamps dont' equate to a time, they just tell you if your version of the row is the same as the one that is in there now...


Rob
 
Thanks NoCool:
Good news indeed. Yes, I knew about the true contents of the field (and misleading name of the data type). In fact, the vendor decided to keep actual datatime info in his 'timestamp' column. 'rowversion' it is!
-Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top