You can use the SQL job to run any SQL on schedule. If you need to do something more dynamic, you can manage tasks (create, schedule, delete, etc.) from SQL itself. This provides a tremendous amount of flexibility.
Additional information on job management with TSQL is here .
source share