SYSTEM$SYNC_ZEROCOPY_OBJECTS

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Starts one discovery cycle for a catalog-linked database that was created from a Zero-Copy connector, without waiting for the next scheduled cycle. A discovery cycle finds schemas and tables that the partner added or removed. The function schedules the cycle and returns immediately. It doesn’t wait for discovery to finish, and it doesn’t refresh table metadata.

Syntax

SYSTEM$SYNC_ZEROCOPY_OBJECTS('<database_name>')

Parameters

NameRequiredDescription
database_namerequiredThe name of the catalog-linked database to sync. Specify it as a string literal enclosed in single quotes. The database must be a catalog-linked database that was created with CREATE DATABASE … LINKED_ZEROCOPY_CONNECTOR.

Returns

Returns a string that contains a JSON object.

Usage notes

Access control requirements

A role used to execute this operation must have the MODIFY or OWNERSHIP privilege on the catalog-linked 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.