ssas.model_json_3131_tables_partitions_source - V

type: V ( view ), modify_date: 2021-09-28 17:43:49

RepoObject_guid: F55FD8EE-E90A-EC11-8516-A81E8446D5B0

Description

Examples

Entity Diagram

entity-ssas.model_json_3131_tables_partitions_source

Columns

Table 1. Columns of ssas.model_json_3131_tables_partitions_source - V
PK Column Name Data Type NULL? ID

1

nvarchar(128)

NOT NULL

2

nvarchar(128)

NOT NULL

3

nvarchar(500)

NULL

4

nvarchar(500)

NULL

uniqueidentifier

NOT NULL

nvarchar(500)

NULL

nvarchar(max)

NULL

nvarchar(max)

NULL

nvarchar(max)

NULL

nvarchar(500)

NULL

Foreign Key Diagram

entity_1_1_fk-ssas.model_json_3131_tables_partitions_source

References

Object Reference Diagram - 1 1

entity_1_1_objectref-ssas.model_json_3131_tables_partitions_source

Object Reference Diagram - Referenced - 30 0

entity_30_0_objectref-ssas.model_json_3131_tables_partitions_source

Object Reference Diagram - Referencing - 0 30

entity_0_30_objectref-ssas.model_json_3131_tables_partitions_source

Column Reference Diagram

entity_1_1_colref-ssas.model_json_3131_tables_partitions_source

Indexes

PK_model_json_3131_tables_partitions_source

idx_model_json_3131_tables_partitions_source__2

idx_model_json_3131_tables_partitions_source__3

idx_model_json_3131_tables_partitions_source__4

Column Details

_

databasename

1

databasename

nvarchar(128)

NOT NULL

tables_name

2

tables_name

nvarchar(128)

NOT NULL

tables_partitions_name

3

tables_partitions_name

nvarchar(500)

NULL

tables_partitions_source_name

4

tables_partitions_source_name

nvarchar(500)

NULL

RepoObject_guid

RepoObject_guid

uniqueidentifier

NOT NULL

tables_partitions_source_dataSource

tables_partitions_source_dataSource

nvarchar(500)

NULL

tables_partitions_source_expression

tables_partitions_source_expression

nvarchar(max)

NULL

tables_partitions_source_query

tables_partitions_source_query

nvarchar(max)

NULL

tables_partitions_source_query_ja

tables_partitions_source_query_ja

nvarchar(max)

NULL

tables_partitions_source_type

tables_partitions_source_type

nvarchar(500)

NULL

sql_modules_definition

ssas.model_json_3131_tables_partitions_source - V script
/*
Select
    Distinct
    j2.[Key]
  , j2.Type
From
    ssas.model_json_313_tables_partitions As T1
    Cross Apply OpenJson ( T1.tables_partitions_source_j )
                --As j1
                --   Cross Apply OpenJson ( j1.Value )
                                          As j2
Order By
    j2.[Key]
  , j2.Type
GO
*/
CREATE View ssas.model_json_3131_tables_partitions_source
As
Select
    T1.databasename
  , T1.tables_name
  , T1.RepoObject_guid
  , T1.tables_partitions_name
  --, T1.tables_partitions_annotations_ja
  --, T1.tables_partitions_dataView
  --, T1.tables_partitions_mode
  --, T1.tables_partitions_source_j
  , j2.tables_partitions_source_name
  , j2.tables_partitions_source_dataSource
  , j2.tables_partitions_source_expression
  , j2.tables_partitions_source_query
  , j2.tables_partitions_source_query_ja
  , j2.tables_partitions_source_type
From
    ssas.model_json_313_tables_partitions As T1
    Cross Apply
    OpenJson ( T1.tables_partitions_source_j )
    --As j1
    --Cross Apply
    --OpenJson ( j1.Value )
    With
    (
        tables_partitions_source_name NVarchar ( 500 ) N'$.name'
      , tables_partitions_source_dataSource NVarchar ( 500 ) N'$.dataSource'
      , tables_partitions_source_expression NVarchar ( Max ) N'$.expression'
      , tables_partitions_source_query NVarchar ( Max ) N'$.query'
      , tables_partitions_source_query_ja NVarchar ( Max ) N'$.query' As Json
      , tables_partitions_source_type NVarchar ( 500 ) N'$.type'
    )                                     As j2