Possible Duplicate:
Should I store DateTimes as a Long (Ticks) in a database?
It is OK to use DateTime.Ticks
instead of DateTime
itself for implementing DateTime
based operations? For example changing type of database column from DATETIME
into BIGINT
and then storing 123456789123456
value into it in instead of 2012-06-02 14:26:08.727
?
I know in this case we've to handle conversions, but there is several pros. for example there is no limit in date-time range for storing and also we wouldn't worry about database supported types {date, datetime, smalldate} etc.
Actually I want to ensure about this approach in two field:
- Design Principles
- Performance issues
Thanks in advance.