Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems

- Database Schema Synchronization
- MySQL DATA synchronization
- SQL Scheduler and Reporting Tool
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)
- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (169314 views)
- Error no. 2003: Can't connect... (86269 views)
- SQLyog Version History (63952 views)
- Error no. 1045: "Connection denied..." (61346 views)
- Error no. 1251: "Client does not support authentication..." (58317 views)
- Error No. 2005: Unknown MySQL server host... (50192 views)
- What is HTTP-tunneling? (42282 views)
- What Is SSH and SSH-tunneling? (38071 views)
- Can I use SQLyog with the WINE Windows emulator ... (34942 views)
- Why are Stored Procedures not created when I import ... (34267 views)
Latest FAQs 
- SQLyog Version History (2012-01-26 08:20)
- SQLyog is a client for the MySQL server - ... (2011-11-04 04:48)
- I get error 1130 "Host is not allowed to ... (2011-11-01 05:21)
- Problems on Ubuntu 11.x (2011-10-29 13:02)
- Problems creating a functional DSN on 64 bit Windows. ... (2011-09-15 14:34)
Sticky FAQs
SQLyog Job Agent (SJA) » General questions about SJA
Why is my Scheduled Job not Running?
If that happens it is not an issue with SQLyog!
First you must understand that any job running on Windows is running with some user privileges. It may be running with the privileges of a human user, or the privileges of a 'system' user. On Win-NT -based system the scheduler is a systems 'service' that operates independently of user logon. Win 9x (including ME) does not operate 'services' - the system itself only starts with a user logon.
However one thing is theory - another practice: There are several known issues with the Windows Scheduler. First it is a well-known issue that running a scheduled job as a human user without a password most often does not work. But even if user has a password there are several reports (search Google for instance!) that the scheduler fails if not user is logged on at schedule time. There also seems to be variations of the scheduler and how it works with various OS's and various Service Pack levels. Internet resources (and not even Microsoft's own) are not unambiguous about this.
But see attached picture. This is the setting that I have the best experience with. User is here 'NT AUTHORITY\SYSTEM'. When you uncheck 'run only if logged on' a pop-up shows up asking for a password. Just cancel it by pressing 'enter' (this user has no password!). With this setting it is safe to run SJA from an unattended computer. Now test the function by setting scheduled time a few minutes ahead, and (with NT-based systems) from start menu choose 'Start... log out'. The welcome screen appears. The system with its services is running and no user is logged on. Wait until time of schedule has been passed. Then log on, go to 'Scheduled Task' and check that job actually has been running. If the scheduler tells that the job has been running, but you did not get the expected result of it, it is not scheduling but the job itself that has failed!
But from time to time we have come across situations where the Windows Scheduler did not start a job as it should do. It is an issue with the Windows Scheduler itself. Or could be an issue an OS that needs to be repair'ed or reinstalled (there is unfortunately no way to repair or reinstall the Scheduler itself).
You might also try a third-party scheduler. Or use the command-line Windows NT scheduler that is also supplied with 2K and XP. And of course you should check too, that the job is actually able to run by executing it from command-line.
Another trick is to 'clone' the settings of another scheduled job that works fine on your system (an AV updater for instance). That is actually how I came across the idea to run scheduled SJA-jobs as user 'NT AUTHORITY\SYSTEM'.
Tags: -
Related entries:
- Welcome to the SQLyog FAQ
- Installation and upgrading
- SQLyog Version History
- What kind of ODBC databases are supported by SQLyog Import External Data Tool?
- Error No. 2005: Unknown MySQL server host...
Last update: 2006-06-01 05:15
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ