How can I combine a datetime value from two datetimes. The first value contains appropriate date and the second value contains appropriate time (but also has a date that I want to skip).
DECLARE @date DATETIME = '2016-12-08 00:00:00.000'
DECLARE @time DATETIME = '2016-12-07 12:15:00.000'
SELECT @date + @time
returns: 2133-11-14 12:15:00.000
but I want: 2016-12-08 12:15:00.000