Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は SQL サーバー 2008 R2 を使用していますが、クエリを使用して SQL サーバー エージェントのジョブ ステータス (実行中/停止中) を知る方法があるかどうか疑問に思っています。何か提案はありますか?
システム ストアド プロシージャ sp_help_job があります。これにより、ジョブ、そのステップ、スケジュール、およびサーバーに関する情報が返されます。例えば
EXEC msdb.dbo.sp_help_job @Job_name = 'The name of the job'