There is a procedure ‘ xp_sqlagent_is_started’ which makes it possible to know to it agent sql is started. but the returns value is always 0 , whatever the state of the agent. Why ?