create Job to check Database Status(Online/Offline/Suspect) If not online send mail

  • i need to create a job in my office. it should check(for every 10 min) all the databases status in the instance and if any of the database is not online the job should send a mail. I have already configured the DB Mail. can any one help me in creating certen job please?

  • SELECT *

    FROM sys.databases

    WHERE state_desc != 'ONLINE'

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 2 posts - 1 through 2 (of 2 total)

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