For **Amazon RDS SQL Server** environments, the stored procedure approach is preferred and typically the only method that works due to restricted table access. Ensure the following permissions are granted:
```sql
-- Essential for RDS environments
GRANT EXECUTE ON msdb.dbo.sp_help_job TO 'USERNAME'
GRANT EXECUTE ON msdb.dbo.sp_help_jobstep TO 'USERNAME'
```
#### On-Premises SQL Server Notes
For **on-premises SQL Server** installations, direct table access is typically available and faster. The source will automatically use direct queries when possible, with stored procedures as fallback.
#### Troubleshooting Permissions
If you encounter permission errors:
1.**RDS environments**: Ensure stored procedure execute permissions are granted
2.**On-premises environments**: Verify both table select and stored procedure execute permissions
3.**Mixed environments**: Grant all permissions listed above for maximum compatibility
The DataHub source will automatically handle fallback between methods and provide detailed error messages with specific permission requirements if issues occur.