How to start SQL Server agent jobs automatically

巧了我就是萌 提交于 2019-12-22 13:33:09

问题


I am writing PowerShell scripts to control SQL Server agent start/stop to ensure all the contained jobs runs according to defined schedule. I want to make sure that the only thing I need to do is to start the SQL Server Agent Windows Service, and then all the contained SQL Server Jobs will run automatically according to defined schedule? No need to control each job's start/stop specifically?

I am using SQL Server 2008 on Windows Server 2003.

thanks in advance, George


回答1:


When you start SQL Server Agent all jobs (if they are not disabled) will run automatically and it's no need to control each job. Just make sure that jobs are enabled.



来源:https://stackoverflow.com/questions/1216551/how-to-start-sql-server-agent-jobs-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!