SQL Server › SQL Server Agent & Job Scheduling
What security considerations should be kept in mind when configuring the account that SQL Server Agent jobs run under?
IntermediateAnswer
Jobs should generally run using the minimum permissions necessary to complete their specific task, often through a dedicated proxy account rather than using an overly privileged service account, since a job with excessive permissions could cause significant damage if its underlying script contains a mistake or is somehow compromised.
EXEC msdb.dbo.sp_add_proxy @proxy_name = 'LimitedBackupProxy', @credential_name = 'BackupCredential';
EXEC msdb.dbo.sp_grant_proxy_to_subsystem @proxy_name = 'LimitedBackupProxy', @subsystem = 'TSQL';Real-world example A company sets up a dedicated proxy account with only the specific permissions needed to run backup jobs, rather than running every scheduled job under a powerful administrative account that could cause serious harm if a script contained a mistake.