A SQL Server, scalar-value function that returns the greater of two dates.
A SQL Server, scalar-value function that returns the lesser of two dates.
This user-defined function creates a table of date ranges. Continue reading
The Sql Server GETDATE() function not allowed in the body of user-defined functions, as it is non-deterministic. The GetNow view provides a means to generate a system date/time that can be used in Sql Server user-defined functions.