unable to start sql agent

  • how to start the agent iam getting the below error :

  • getting the error:

    SQLServerAgent could not be started (reason: SQLServerAgent cannot start because the msdb database is read-only).

  • Run the below command.

    USE [master]

    GO

    ALTER DATABASE [msdb] SET READ_WRITE WITH NO_WAIT

    GO

  • even I tried by running and starting the agent

    but it also failed

  • Whats the error you got now??

  • no log in sql error log but in event vwr still showing the same error

    SQLServerAgent could not be started (reason: SQLServerAgent cannot start because the msdb database is read-only).

  • Which edition are you on?

    Is the msdb database corrupted?

    Have you tried a DBCC CHECKDB to see if something comes up?

    Do you see the database as readonly?

    SELECT is_read_only

    FROM sys.databases

    WHERE name = 'msdb'

    -- Gianluca Sartori

  • ran the cmd and showing the value is 0 .checked in sql agent log and found

    SQLServerAgent cannot start because the msdb database is read-only

    agent xp's are disabled and enabled to 1 and tried to restart the agent the xp's value back again to 0 .

  • My friend Gail Shaw suggested that the msdb data files could be read only in the file system. Make sure you check that as well.

    -- Gianluca Sartori

  • I checked the msdb files they are not in readonly ..

  • observed sql agent service is not present in SSCM

  • Which edition please?

    -- Gianluca Sartori

  • NO errors in MSDB after dbcc check and its an enterprise edition

  • Do you have the SQL Server Agent service in the services applet or is it missing from there as well?

    -- Gianluca Sartori

  • agent service is there but when I tried to start prompting some services will stopped automatically

Viewing 15 posts - 1 through 15 (of 28 total)

You must be logged in to reply to this topic. Login to reply