Is there a function like GETDATE() in Sql Server 2005 that let\'s you get the max possible date?
GETDATE()
I do not want to find the highest date in a table. I wa
The documentation says the range is January 1, 1753, through December 31, 9999.
I don't think there is a built in function, but you could create one that returns the maximum datetime value.
CREATE FUNCTION fn_max_date RETURNS datetime AS return cast('12/31/9999 23:59:59.9999' as datetime)