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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date to Timestamp

Status
Not open for further replies.

SDyke

MIS
Oct 13, 2005
55
0
0
US
I have a field with a date 01/01/2009 datatype L I have a field with data type Z. I would like a update sql string that would fill in the timestamp field based on the value of the data field. The time can be 00:00:00.
 
Code:
update MyTable set MyTimeStamp = cast(MyDateFld as TimeStamp)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top