- Categories:
System functions (System Control)
SYSTEM$ZEROCOPY_ REFRESH_ SEMANTIC_ VIEW¶
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¶
Arguments¶
database_nameThe 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¶
- The database must be a catalog-linked database created from a connected SAP® BDC Zero-Copy connector. The function fails for any other database.
- Only one refresh can run at a time for a database. If a refresh is already in progress, the function fails.
- Snowflake creates the semantic view automatically after you create the catalog-linked database, but it doesn’t rebuild an existing semantic view when the CSN changes. Call this function after the CSN changes on the SAP® side.
- The semantic view is built from the CSN only, not from the table columns. A column that isn’t in the CSN isn’t added to the view.
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.
Examples¶
Refresh the semantic view of a catalog-linked database named my_sales_order: