Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.spt_check_constbytable_rowset

  No additional text.


Syntax

create view sys.spt_check_constbytable_rowset
as
    select
    -- begin (for doing joins)
        object_id           = t_obj.object_id,
        schema_id           = t_obj.schema_id,
    -- end (for doing joins)
        TABLE_CATALOG       = db_name(),
        TABLE_SCHEMA        = schema_name(t_obj.schema_id),
        TABLE_NAME          = t_obj.name,
        CONSTRAINT_CATALOG  = db_name(),
        CONSTRAINT_SCHEMA   = schema_name(m.schema_id),
        CONSTRAINT_NAME     = m.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 t_obj inner join
        sys.check_constraints m on
            (
                m.parent_object_id = t_obj.object_id and
                m.is_not_trusted = 0 and -- we are exposing only trusted constraints (see SQL PT 43640)
                t_obj.type in ('U ','S ')
            )

 
Last revision 2008RTM
See also

  sp_check_constbytable_rowset (Procedure)
sp_check_constbytable_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