Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
57 votes
6 answers
71k views

How to combine date and time to datetime2 in SQL Server?

Given the following components DECLARE @D DATE = '2013-10-13' DECLARE @T TIME(7) = '23:59:59.9999999' What is the best way of combining them to produce a DATETIME2(7) result with value '2013-10-13 ...
Martin Smith's user avatar
  • 86.5k