web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Switch off active batch jobs

DaxNigel Profile Picture DaxNigel 2,574

When moving an AX database to another instance, example production to test, it is often adviseable to switch off all batch jobs. This can be done using the following SQL script:

-- Reset the batch job status to "Withhold" for "Waiting", "Executing" and "Ready" jobs 
UPDATE [BATCH] SET [STATUS] = 0 WHERE [STATUS] IN (1,2,5)
UPDATE [BATCHJOB] SET [STATUS] = 0 WHERE [STATUS] IN (1,2,5)


This was originally posted here.

Comments

*This post is locked for comments