Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Switch off active batch jobs

DaxNigel Profile Picture DaxNigel 2,572

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