Home Forums SQL Server 2005 Development datetime check constraint for 23:59:59.997 RE: datetime check constraint for 23:59:59.997<!-- 864 -->

  • Sean Lange (8/20/2014)


    BTW, You should not get into the habit of things like getdate() - 1. You should be explicit and use dateadd.

    Heh... or just dump the newer date/time datatypes so that you can take these types of wonderful shortcuts. 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)