All SQL Server Agent details are maintained by MSDB databases, which store all the below information
- All individual jobs and maintenances plan related jobs.
- Schedules of all jobs.
- Operator, Database mails.
- All Alerts related information.
- All the Error log information is stored here.
What is SQL server Agent?
SQL Server is an individual
service and it’s a default service which comes with the SQL server engine
service, All the agent is stored in msdb.
Why SQL server Agent?
This SQL server agent is used
for providing automation for all SQL server administrative tasks.
What is operator?
All the notifications of a job are
received by this person based on the job status.
What is Database mail?
Database mail is the from address
from where and which SMTP the notification to Operator need to send is given
while configuring database mail,
Only
user with DatabaseMailUser role can configure this,
By
default Database mail is not enabled in older versions, we use SSAC(SQL Surface
Area Configuration) to enable that feature in older versions, but now we can
directly enable it from SSMS.
Example of Operator and Database Mail:
Simply said,The SQL Agent needs to send a notification to an email address about a job status,
- So here Operator means to address of a user, when configuring an operator, we give an email address which says to which the notification needs to be sent.
- And the database mail is the from address, when configuring Database mail, we give the SMTP and port, domain which says from where the notifications need to send.
Some of Default - Additional MSDB database role:
Below are some database user roles only in MSDB databases and their users they are:
- DatabaseMailUserRole
- db_ssisadmin
- db_ssisltduser
- db_ssisoperator
- SQLAgentOperatorRole
- SQLAgentReaderRole
- TargetServersRole
- dbm_monitor
- dc_admin
- dc_operator
- dc_proxy
Comments
Post a Comment