December 13, 2021 at 7:50 pm
You also can use DateTimeFromParts()
December 13, 2021 at 8:07 pm
The ConvoHrs table is coming from a vendor we have no control over.
How is the vendor providing that data? Is this through a linked server - a file that is imported, something else? What is the format of the event_sec data and are you 100% positive it will always be in that format? The same with created_at - 100% sure it will always be provided in the exact same format every time?
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
December 21, 2021 at 10:48 pm
Sorry, didn't quite read the entire thread. You could do some manipulation with datetimefromparts, but the easiest way might be this:
declare @dt datetime = getdate()
, @time time = '1:00'
select @dt + cast(@time as datetime)
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply