I have a following database columns and the values
MyDate datetime
and My_Time varchar(5)
the values stored are
2006-09-05 00:00:00.000
and 16:47
Now I want to add this two columns and get a single datetime
value 2006-09-05 16:47:00.000
How can I do this in SQL ?
UPDATE:
Some rows have NULL
values for DocDate and DocTime.
So i am getting error like Conversion failed when converting date and/or time from character string