CHECK_CONSTRAINTS

Information Schema Views Code behind (INFORMATION_SCHEMA.CHECK_CONSTRAINTS)!!!

SELECT  DB_NAME() AS CONSTRAINT_CATALOG ,
        SCHEMA_NAME(schema_id) AS CONSTRAINT_SCHEMA ,
        name AS CONSTRAINT_NAME ,
        CONVERT(NVARCHAR(4000), definition) AS CHECK_CLAUSE
FROM    sys.check_constraints
Advertisements
This entry was posted in Database Administration, Information Schema. Bookmark the permalink.

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s