sp_sqlagent_notify problem

Discussion in 'microsoft.public.sqlserver.programming' started by Sven Peeters, Apr 21, 2006.

  1. Sven Peeters

    Sven Peeters Guest


    I use following query to check whether the SQL Server Agent is running :
    DECLARE @flag int EXEC @flag = msdb..sp_sqlagent_notify 'G' Select @flag as

    I have a problem with only one customer ( SQL Entreprise ) with this part :
    EXEC msdb..sp_sqlagent_notify 'G'
    I give me the message 'SQLServerAgent is not currently running so it cannot
    be notified of this action.' but the service is started and running correctly.

    Am i using the wrong method to see whether the Agent Service is running, or
    is there a real problem?
    It works correctly for all other customers so I don't get it.

    Sven Peeters
    Sven Peeters, Apr 21, 2006
    1. Advertisements

  2. Sven Peeters

    Juergen Leis

    Mar 4, 2022
    Likes Received:
    Perhaps a Permission Problem, because DBEngine and SQL Agent run with different (non Admin) Accounts.
    Juergen Leis, Mar 4, 2022
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.