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

Timestamp

Status
Not open for further replies.

EPNICO

MIS
Jun 14, 2001
45
US
Hello:

In MS SQL version 7.0 is there a way to query a timestamp field so I can get an an exact date? In my research for this I found a Teck-tip that mentions that you cannot query a timestamp field?

Thanks for any ideas.


 
Create a datetime or smalldatetime field depending on how accurate you need the time to be. Set the default to getdate().
 
You can not get a meaningful datetime from a SQL Server timestamp field. Unfortunately the TIMESTAMP data type is misnamed. It is not a real timestamp but rather an 8 byte binary field that that changes every time a row is updated. Terry L. Broadbent
Programming and Computing Resources
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top