- Categories:
System functions (System Control)
SYSTEM$SCHEDULE_ ASYNC_ REPLICATION_ GROUP_ REFRESH¶
Starts a refresh operation for a replication group or a failover group, in the background. You can call this function in a stored procedure to begin one or more refresh operations and continue doing work while the refreshes are in progress.
Syntax¶
Arguments¶
'replication_group_name'or'failover_group_name'The name of the replication group or failover group to refresh.
Usage notes¶
- This function has the same effect as an ALTER REPLICATION GROUP … REFRESH or ALTER FAILOVER GROUP … REFRESH command, but doesn’t wait for the operation to complete.
- Only account administrators (that is, users with the ACCOUNTADMIN role) can execute this function.
- This function must be executed from the secondary account.
Examples¶
Start refreshing two failover groups simultaneously: