create schedule

Creates a schedule to execute shell commands at a time you specify.

Syntax

create schedule sched_name as ‘sched_time’ 
[set {on | off}] for exec ‘command

Parameters

Examples

Usage

  • Schedule the time you want to perform replication tasks – to report, for example, on a specific state of the replicate database while the replicate database is frozen and not receiving data from the primary database.

  • You can schedule replication to happen only during specific night hours, so that the processing of the next day does not change the replicate database, and reporting can occur on the data of the day before, that is frozen in the replicate database. You can do this by creating schedules to suspend and resume connections to the replicate database at specific times of the day.

Permissions

create schedule requires “sa” permission.

Related reference
admin schedule
alter schedule
drop schedule