Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_check_constraints_rowset

  No additional text.


Syntax

create procedure sys.sp_check_constraints_rowset
(
    @constraint_name    sysname,
    @constraint_schema  sysname = null
)
as
    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 and o.name = @constraint_name) or
        object_id(quotename(@constraint_schema) + '.' + quotename(@constraint_name)) = o.object_id
    order by 1,2,3

 
Last revision 2008RTM
See also

  sp_check_constraints_rowset2 (Procedure)
       



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