SYSTEM$ZEROCOPY_REFRESH_SEMANTIC_VIEW

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Regenerates the semantic view in the SNOWFLAKE$ schema of a SAP® BDC catalog-linked database from the current SAP® Core Schema Notation (CSN). Use this function to pick up a change to the CSN. The existing grants on the view are preserved. For more information, see Explore Data Products from SAP® BDC Connect for Snowflake.

Syntax

SYSTEM$ZEROCOPY_REFRESH_SEMANTIC_VIEW('<database_name>')

Parameters

NameRequiredDescription
database_namerequiredThe name of the SAP® BDC catalog-linked database whose semantic view you want to refresh. Specify it as a string literal enclosed in single quotes. You can use either the database name on its own or a fully qualified name.

Returns

Returns a string confirming that the refresh was scheduled. The refresh runs in the background, so the function returns before the view is rebuilt. To confirm the result, query the semantic view in the database’s SNOWFLAKE$ schema.

Usage notes

Access control requirements

A role used to execute this operation must have the MODIFY or OWNERSHIP privilege on the database. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.