--创建调度
EXEC msdb..sp_add_jobschedule @job_name = '作业名称', 
@name = '时间安排名称',
@freq_type=4,   --4 每天,8 每周,16 每月
@freq_interval=1, --作业执行的天数
@freq_subday_type=0x08,--是否重复执行,0x1 在指定的时间, 0x4 分钟, 0x8 小时 
@freq_subday_interval=1,  --重复周期
@freq_recurrence_factor=1, --重复执行,则设置为1,否则设置为0
@active_start_time = 00000 --0点开始执行