Why is the date I get via select getdate() wrong in SQL Server?

A. The usual reason for this is an old bug that caused the date in SQL Server to wrap around after a month or so of continuous running. This was caused by the variable that the date was being held in overflowing.

The bugs were fixed in one of the 6.5 servicepacks - probably SP2. Apply the latest servicepack and it should be fixed.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish