• GSquared

    SELECT *

    FROM dbo.SARGTest

    WHERE CAST(DT AS DATE) = CAST(GETDATE() AS DATE);

    It is my belief that this query gets a seek (i.e. is SARGable) as a function-around-a-column because Microsoft KNEW it would be happening SO MUCH that they baked it into the optimizer/engine.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service