Check Constrain to existing table

  • A short piece that has a scenario of an existing table with some bad data. We want to prevent more, so we add a check constraint. However we don't want to check existing data.

    Then we can clean up bad data over time.

    A short story that shows how this might work.

  • I can take this one. Nice synergy with my article on trusted vs untrusted constraints.

    I am quite busy so if you're in a hurry you'll need to find someone else.

    (And you might want to send me a reminder after some time)


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply