Skip to content

PATTERN_VARIABLES view

This Information Schema view displays a row for each pattern variable value, for all patterns which are added to the current project. The value of a pattern variable could be set individually for each instance folder, this is why there is one entry for each instance folder and pattern variable.

Columns

ColumnData TypeDescription
PATTERNstringThe pattern to which the variable belongs
FOLDERstringThe path of an instance folder
NAMEstringThe name of the pattern variable
VALUEstringThe value of the variable for the given instance folder

Examples

The following query retrieves all values of pattern variables.

sql
SELECT * FROM @INFORMATION_SCHEMA.PATTERN_VARIABLES;
txt
+-----------------+------------+--------------+------------+
| PATTERN         | FOLDER     | NAME         | VALUE      |
+-----------------+------------+--------------+------------+
| CORE_DATA_VAULT | /RAW_VAULT | SCHEMA_NAME  | CORE       |
| CORE_DATA_VAULT | /BDV       | SCHEMA_NAME  | BDV        |
+-----------------+------------+--------------+------------+