Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_check_constbytable_rowset2

  No additional text.


Syntax

create procedure sys.sp_check_constbytable_rowset2
(
    @table_schema       sysname = null,
    @constraint_name    sysname = null,
    @constraint_schema  sysname = null
)
as

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

    select
        TABLE_CATALOG       = s_ccr.TABLE_CATALOG,
        TABLE_SCHEMA        = s_ccr.TABLE_SCHEMA,
        TABLE_NAME          = s_ccr.TABLE_NAME,
        CONSTRAINT_CATALOG  = s_ccr.CONSTRAINT_CATALOG,
        CONSTRAINT_SCHEMA   = s_ccr.CONSTRAINT_SCHEMA,
        CONSTRAINT_NAME     = s_ccr.CONSTRAINT_NAME,
        CHECK_CLAUSE        = s_ccr.CHECK_CLAUSE,
        DESCRIPTION         = s_ccr.DESCRIPTION

    from
        sys.spt_check_constbytable_rowset s_ccr
    where
        (@table_schema is null or schema_id(@table_schema) = s_ccr.schema_id or schema_id('sys') = s_ccr.schema_id) and
        (@constraint_name is null or s_ccr.CONSTRAINT_NAME = @constraint_name) and
        (@constraint_schema is null or @constraint_schema = schema_name(s_ccr.schema_id))
    order by 1,2,3,4,5,6

 
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