finding max possible date in ms sql server 2005+

前端 未结 7 1167
名媛妹妹
名媛妹妹 2021-01-01 08:22

Is there a function like GETDATE() in Sql Server 2005 that let\'s you get the max possible date?

I do not want to find the highest date in a table. I wa

7条回答
  •  执笔经年
    2021-01-01 09:26

    Consult the documentation.

    http://msdn.microsoft.com/en-us/library/ms187819.aspx

    Date range
    January 1, 1753, through December 31, 9999
    

    There is no way to get the max datetime programatically.

    If so it would be listed here:

    http://msdn.microsoft.com/en-us/library/ms186724.aspx

提交回复
热议问题