How to see contents of Check Constraint

前端 未结 4 2190
臣服心动
臣服心动 2021-02-13 17:24

Is there a TSQL script that will allow me to see the contents of a constraint. I found a question regarding Oracle but I need a TSQL script.

How to see contents of Check

4条回答
  •  故里飘歌
    2021-02-13 17:34

    To have any check constraints, you're going to need objects of this type.

    select *
    from sys.objects
    where sys.objects.type = 'C'
    

    check_constraints

提交回复
热议问题