repo.ForeignKey_Indexes_union - V

type: V ( view ), modify_date: 2022-01-05 18:06:35

RepoObject_guid: 81170058-C073-EB11-84E3-A81E8446D5B0

Description

Examples

Entity Diagram

entity-repo.foreignkey_indexes_union

Columns

Table 1. Columns of repo.ForeignKey_Indexes_union - V
PK Column Name Data Type NULL? ID

1

uniqueidentifier

NULL

tinyint

NULL

nvarchar(517)

NULL

nvarchar(263)

NULL

int

NOT NULL

uniqueidentifier

NULL

nvarchar(450)

NULL

nvarchar(4000)

NULL

nvarchar(4000)

NULL

nvarchar(517)

NULL

nvarchar(257)

NULL

uniqueidentifier

NULL

nvarchar(128)

NULL

nvarchar(128)

NULL

uniqueidentifier

NULL

nvarchar(450)

NULL

nvarchar(4000)

NULL

nvarchar(4000)

NULL

nvarchar(517)

NULL

nvarchar(257)

NULL

uniqueidentifier

NULL

nvarchar(128)

NULL

nvarchar(128)

NULL

tinyint

NULL

Foreign Key Diagram

entity_1_1_fk-repo.foreignkey_indexes_union

References

Object Reference Diagram - 1 1

entity_1_1_objectref-repo.foreignkey_indexes_union

Object Reference Diagram - Referenced - 30 0

entity_30_0_objectref-repo.foreignkey_indexes_union

Object Reference Diagram - Referencing - 0 30

entity_0_30_objectref-repo.foreignkey_indexes_union

Column Reference Diagram

entity_1_1_colref-repo.foreignkey_indexes_union

Indexes

PK_ForeignKey_Indexes_union

Column Details

_

ForeignKey_guid

1

ForeignKey_guid

uniqueidentifier

NULL

delete_referential_action

delete_referential_action

tinyint

NULL

ForeignKey_fullname

ForeignKey_fullname

nvarchar(517)

NULL

ForeignKey_name

ForeignKey_name

nvarchar(263)

NULL

is_MatchingDatatypePattern

is_MatchingDatatypePattern

int

NOT NULL

referenced_index_guid

referenced_index_guid

uniqueidentifier

NULL

referenced_index_name

referenced_index_name

nvarchar(450)

NULL

referenced_IndexPatternColumnDatatype

referenced_IndexPatternColumnDatatype

nvarchar(4000)

NULL

referenced_IndexPatternColumnName

referenced_IndexPatternColumnName

nvarchar(4000)

NULL

referenced_RepoObject_fullname

referenced_RepoObject_fullname

nvarchar(517)

NULL

referenced_RepoObject_fullname2

referenced_RepoObject_fullname2

nvarchar(257)

NULL

referenced_RepoObject_guid

referenced_RepoObject_guid

uniqueidentifier

NULL

referenced_SysObject_name

referenced_SysObject_name

nvarchar(128)

NULL

referenced_SysObject_schema_name

referenced_SysObject_schema_name

nvarchar(128)

NULL

referencing_index_guid

referencing_index_guid

uniqueidentifier

NULL

referencing_index_name

referencing_index_name

nvarchar(450)

NULL

referencing_IndexPatternColumnDatatype

referencing_IndexPatternColumnDatatype

nvarchar(4000)

NULL

referencing_IndexPatternColumnName

referencing_IndexPatternColumnName

nvarchar(4000)

NULL

referencing_RepoObject_fullname

referencing_RepoObject_fullname

nvarchar(517)

NULL

referencing_RepoObject_fullname2

referencing_RepoObject_fullname2

nvarchar(257)

NULL

referencing_RepoObject_guid

referencing_RepoObject_guid

uniqueidentifier

NULL

referencing_SysObject_name

referencing_SysObject_name

nvarchar(128)

NULL

referencing_SysObject_schema_name

referencing_SysObject_schema_name

nvarchar(128)

NULL

update_referential_action

update_referential_action

tinyint

NULL

sql_modules_definition

repo.ForeignKey_Indexes_union - V script
CREATE View repo.ForeignKey_Indexes_union
As
Select
    ForeignKey_guid
  , is_MatchingDatatypePattern
  , ForeignKey_name                       = ForeignKey_name Collate Database_Default
  , ForeignKey_fullname
  , referenced_index_guid
  , referenced_index_name
  , referenced_IndexPatternColumnDatatype
  , referenced_IndexPatternColumnName
  , referenced_RepoObject_fullname
  , referenced_RepoObject_fullname2
  , referenced_RepoObject_guid
  , referenced_SysObject_name
  , referenced_SysObject_schema_name
  , referencing_index_guid
  , referencing_index_name
  , referencing_IndexPatternColumnDatatype
  , referencing_IndexPatternColumnName
  , referencing_RepoObject_fullname
  , referencing_RepoObject_fullname2
  , referencing_RepoObject_guid
  , referencing_SysObject_name
  , referencing_SysObject_schema_name
  , delete_referential_action
  , update_referential_action
From
    repo.ForeignKey_Indexes
Union All
Select
    ForeignKey_guid
  , is_MatchingDatatypePattern
  , ForeignKey_name Collate Database_Default
  , ForeignKey_fullname
  , referenced_index_guid
  , referenced_index_name
  , referenced_IndexPatternColumnDatatype
  , referenced_IndexPatternColumnName
  , referenced_RepoObject_fullname
  , referenced_RepoObject_fullname2
  , referenced_RepoObject_guid
  , referenced_SysObject_name
  , referenced_SysObject_schema_name
  , referencing_index_guid
  , referencing_index_name
  , referencing_IndexPatternColumnDatatype
  , referencing_IndexPatternColumnName
  , referencing_RepoObject_fullname
  , referencing_RepoObject_fullname2
  , referencing_RepoObject_guid
  , referencing_SysObject_name
  , referencing_SysObject_schema_name
  , delete_referential_action
  , update_referential_action
From
    repo.ForeignKey_virtual_Indexes
Union All
Select
    ForeignKey_guid
  , is_MatchingDatatypePattern
  , ForeignKey_name Collate Database_Default
  , ForeignKey_fullname
  , referenced_index_guid
  , referenced_index_name
  , referenced_IndexPatternColumnDatatype
  , referenced_IndexPatternColumnName
  , referenced_RepoObject_fullname
  , referenced_RepoObject_fullname2
  , referenced_RepoObject_guid
  , referenced_SysObject_name
  , referenced_SysObject_schema_name
  , referencing_index_guid
  , referencing_index_name
  , referencing_IndexPatternColumnDatatype
  , referencing_IndexPatternColumnName
  , referencing_RepoObject_fullname
  , referencing_RepoObject_fullname2
  , referencing_RepoObject_guid
  , referencing_SysObject_name
  , referencing_SysObject_schema_name
  , delete_referential_action
  , update_referential_action
From
    repo.ForeignKey_ssas_Indexes