By convention, a time only column is usually stored in SQL Server as the time on 1900-01-01. The reason for this is that you can add your date only and time only columns together to get the original date and time. The code below shows this.You could consider not having the date only and time only columns and just store the original datetime. You could use a view with the transformed data below for when you need them.select *, DATE_AND_TIME = DATE_ONLY+TIME_ONLYfrom(select DATE_ONLY = dateadd(dd,datediff(dd,0,DT),0), TIME_ONLY = DT-dateadd(dd,datediff(dd,0,DT),0)from(select DT = convert(datetime,'2006-04-27 07:23:11.247')union allselect DT = convert(datetime,'2006-04-27 07:21:09.333')) a) aaResults:DATE_ONLY TIME_ONLY DATE_AND_TIME ----------------------- ----------------------- -----------------------2006-04-27 00:00:00.000 1900-01-01 07:23:11.247 2006-04-27 07:23:11.2472006-04-27 00:00:00.000 1900-01-01 07:21:09.333 2006-04-27 07:21:09.333(2 row(s) affected)
CODO ERGO SUM