Everything you need to know about backup and disaster recovery with AWS, for FREE!
Original function on SQL 2000: FUNCTION [dbo].[udf_RoundTime] (@TimeIn datetime, @NearestN AS float(2)) Returns smalldatetime As Begin DECLARE @Factor float(2) DECLARE @OutDT smalldatetime declare @timein datetime declare @nearestN float(2) SET @Factor = (1440/@NearestN) SELECT @OutDT = Cast((ROUND(Cast(@TimeIn as float(2))*@Factor,0)/@Factor) as smalldatetime) RETURN @OutDT End
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.