Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_check_constraints_rowset2

  No additional text.


Syntax

create procedure sys.sp_check_constraints_rowset2
(
    @constraint_schema  sysname = null
)
as

-- copy & pasted from version 1 of the SProc and removed checks for 1st parameter !

    select
        CONSTRAINT_CATALOG  = db_name(),
        CONSTRAINT_SCHEMA   = schema_name(o.schema_id),
        CONSTRAINT_NAME     = o.name,
        CHECK_CLAUSE        = convert(nvarchar(4000), m.definition), -- keep the type as it used to be in Shiloh
        DESCRIPTION         = convert(nvarchar(1), null)
    from
        sys.all_objects o inner join
        sys.check_constraints m on (o.type = 'C ' and m.object_id = o.object_id)
    where
        @constraint_schema is null or schema_id(@constraint_schema) = o.schema_id -- check schema IDs

    order by 1,2,3

 
Last revision 2008RTM
News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash