Skip to content
Advertisement

Trunc(sysdate) in SQL Server

What is the equivalent of:

…in SQL Server 2005?

Advertisement

Answer

Recommended:

This is another alternative, but it’s risky because of casting to a FLOAT. It’s also been demonstrated to not scale performance as well as the DATEADD/DATEDIFF approach.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement