views:

698

answers:

1

What is the equivalent of:

TRUNC(SYSDATE)

...in SQL Server 2005?

+4  A: 

Use:

CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)
OMG Ponies