What is the equivalent of:
TRUNC(SYSDATE)
...in SQL Server 2005?
Use:
CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)