Retrieving date in sql server, CURRENT_TIMESTAMP vs GetDate()

digiguru picture digiguru · Oct 9, 2008 · Viewed 28.9k times · Source

Using SQL Server - which is the fastest or best practice method to use for date retrieval? Is there a difference?

Answer

Cowan picture Cowan · Oct 9, 2008

CURRENT_TIMESTAMP is standard ANSI SQL, and so is theoretically one tiny little island of 'don't need to change' amongst your thousands of SQL Server-specific lines of SQL if you ever need to move databases....