Skip to content

INSTANCES view ​

This Information Schema view displays a row for each instance that exists in the current project. The view will deliver the same instances that you see in the instances list in the sidebar.

Columns ​

ColumnData TypeDescription
IDintegerThe unique ID of the instance
PATTERNstringThe pattern to which the instance belongs
FOLDERstringThe folder path to the instance
INSTANCEstringThe name of the instance
UPLOAD_ENABLEDintegerA flag indicating whether uploading new metadata to this instance is allowed
INSERT_ENABLEDintegerA flag indicating whether inserting new metadata via SQL is allowed
EDIT_ENABLEDintegerA flag indicating whether the user could edit the instance via the UI
BUILD_ENABLEDintegerA flag indicating whether this instance could be build
LATEST_BUILD_IDintegerThe ID of the latest build in which this instance was built
DELETEDintegerA flag indicating whether the instance is deleted (1) or not (0)
DESCRIPTIONstringThe description of this instance

Examples ​

The following query retrieves a list of all instances inside the current project.

sql
SELECT * FROM @INFORMATION_SCHEMA.INSTANCES;
txt
+----+-----------------+------------+--------------+----------------+----------------+--------------+---------------+-----------------+---------+------------------------------+
| ID | PATTERN         | FOLDER     | INSTANCE     | UPLOAD_ENABLED | INSERT_ENABLED | EDIT_ENABLED | BUILD_ENABLED | LATEST_BUILD_ID | DELETED | DESCRIPTION                  |
+----+-----------------+------------+--------------+----------------+----------------+--------------+---------------+-----------------+---------+------------------------------+
| 25 | CORE_DATA_VAULT | /RAW_VAULT | ACCOUNT_HUB  | 1              | 1              | 1            | 1             | 4711            | 0       | The account hub              |
| 26 | CORE_DATA_VAULT | /RAW_VAULT | CUSTOMER_SAT | 1              | 0              | 1            | 1             | 4711            | 1       | null                         |
| 27 | LDG_FLAT_FILE   | /SRC_A     | Acc_obj_tbl  | 1              | 1              | 1            | 0             | 4713            | 0       | Used for account sat and hub |
| 28 | LDG_FLAT_FILE   | /SRC_B     | Partners     | 0              | 0              | 0            | 1             | 4714            | 0       | null                         |
+----+-----------------+------------+--------------+----------------+----------------+--------------+---------------+-----------------+---------+------------------------------+