Skip to main content

metadata_name_ids

Look up catalog, database, and table identifiers for objects visible to your SQL user.

Run the query in the warehouse SQL Editor or a connected SQL client:

SELECT * FROM information_schema.metadata_name_ids LIMIT 10;

Database​

information_schema

Table information​

Column nameTypeDescription
CATALOG_IDbigintID of the catalog.
CATALOG_NAMEvarchar(512)Catalog name.
DATABASE_IDbigintID of the database.
DATABASE_NAMEvarchar(64)Name of the database.
TABLE_IDbigintID of the table.
TABLE_NAMEvarchar(64)Name of the table.

Use DESCRIBE information_schema.metadata_name_ids; to inspect the schema in your warehouse.