Check constraint

  • Hi there,

    In SSMS, I created Check constraint (named CK_FieldA) in TableA, but I could not see my CK_FieldA under "Constraints" folder. I could only see my Default constraint.

    Where can I find my CK_FieldA in SSMS?

    Thank you.

  • try this

    select * from information_schema.CHECK_CONSTRAINTS

    you can view all constraint in this database

    or may be you not refresh your database.

  • Another way is to use following query

    select * from sys.sysconstraints

    where status = 4

    [font="Verdana"]--www.sqlvillage.com[/size][/font]

  • Thank you for replying... my bad, I did not refresh it. I got the CHECK constraint under "Constraint" folder now. And the T-SQL is very helpful too.. Thanks guys 🙂

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

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