Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users
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.