how to schedule a job for sql query to run daily?

后端 未结 6 1293
死守一世寂寞
死守一世寂寞 2020-11-22 07:32

I need to know how to make a SQL query run daily using a SQL Server Agent job, with minimum required configuration settings.

6条回答
  •  孤城傲影
    2020-11-22 08:07

    Here's a sample code:

    Exec sp_add_schedule
        @schedule_name = N'SchedulName' 
        @freq_type = 1
        @active_start_time = 08300
    

提交回复
热议问题