Scenario:
Whenever user requested to give SQL Server Agent permission then what you will do ?
Solution :
3 roles are there in MSDB.
1. SQLAgentUserRole
*Ability to manage the jobs that they own .
2. SQLAgentReaderRole
*All of the SQLAgentUSerRole rights
*The ability to review multiserver jobs i.e jobs configurations and its history
3.SQLAgentOperatorRole
*All of the SQLAgentReaderRole rights.'
*The ability to review operators , proxies and alerts.
*Execute Start or Stop all local jobs
*Delete the job history for any local job
*Enable or Disable all local jobs and schedules
Ex:
use msdb
go
create user username for login loginname
use msdb
go
sp_addrolemeber @rolename='SQLAgentUserROle',@membername='UserName'
Whenever user requested to give SQL Server Agent permission then what you will do ?
Solution :
3 roles are there in MSDB.
1. SQLAgentUserRole
*Ability to manage the jobs that they own .
2. SQLAgentReaderRole
*All of the SQLAgentUSerRole rights
*The ability to review multiserver jobs i.e jobs configurations and its history
3.SQLAgentOperatorRole
*All of the SQLAgentReaderRole rights.'
*The ability to review operators , proxies and alerts.
*Execute Start or Stop all local jobs
*Delete the job history for any local job
*Enable or Disable all local jobs and schedules
Ex:
use msdb
go
create user username for login loginname
use msdb
go
sp_addrolemeber @rolename='SQLAgentUserROle',@membername='UserName'
No comments:
Post a Comment