日志传送的~~-- 还原作业(每分钟一次)
EXEC msdb.dbo.sp_add_jobschedule 
@job_id = @LS_Secondary_restore_job_id,
@name =N'LS_Restore_DB_LogShip_Test',
@enabled = 1,
@freq_type = 4,
@freq_interval = 1,
@freq_subday_type = 4,
@freq_subday_interval = 1,
@freq_recurrence_factor = 0,
@active_start_date = 19900101,
@active_end_date = 99991231,
@active_start_time = 0,
@active_end_time = 235900 EXEC msdb.dbo.sp_update_job --这儿为什么要调用啊?上边的@job_id和@enabled是一样的啊?
@job_id = @LS_Secondary_restore_job_id,
@enabled = 1