Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Dropped/recreated SQL jobs and now SQL Agent can't run b/c old job_id is still being referenced by the Agent.

$
0
0

I've seen a common issue in several of our production environments where after we upgrade our software the SQL Agent can't run some jobs that were recreated as part of the process because they're referencing the old job_id (in msdb.dbo.sysjobs) that no longer exists.  I can fix it easily enough by restarting the agent as this will flush whatever cache is being used by the Agent but I'd like a less invasive way to do this, if possible.

Is there any way to flush the cache used by the SQL Agent to store job_ids without having to restart it?  Thanks.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>