I have several SQL Server tables with a datetime field that really should only contain dates ... and the fact that the datetime object violates data integrity, because it can be inserted with a time that isnβt really valid for that field. As a result, we must convert it and turn off the time every time we use it. We considered adding triggers to make sure that no data could even get with the time tied ... but it seems to me that this really should be part of the database software and should not be specially programmed every time.
Why doesn't SQL Server have separate date and time data types? Will this change in the near future? Are there other database platforms?
source share