title: Getting Maximum Datetime Value Programmatically
body: <p>How can I retrieve the maximum value of the <code>DATETIME</code> data type in SQL Server 2005 programmatically? I don't want to use <code>NULL</code> as the column value, and I don't want to use <code>CONVERT(DATETIME, '12/31/9999 23:59:59.997')</code> either.</p>
  
  <p>Thank you very much.</p>