SQL Server converting "IN" to "OR" condition internally

  • I have a TFS script with Check constraint " Check Col1 in (1,2)"  when deployed to database its changing the script to "Check Col1 =1 or Col1 =2 " which is correct as well but everytime i want to generate delta for any deployments its coming up all the time. Any setting which can help identify that both are same or anyway of deploying it so that it remains as "IN".

    Thanks in Advance.

    • This topic was modified 1 year, 2 months ago by  Chinna.
    • This topic was modified 1 year, 2 months ago by  Chinna.

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • That is how the IN operator functions, it interprets to a series of OR operators.

  • What tools are you using to deploy and to generate the delta?

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • This was removed by the editor as SPAM

Viewing 4 posts - 1 through 3 (of 3 total)

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