Hi,
One of my job is failed and error is
Executed as user: yyy. The target database ('xxx') is in an availability group and is currently accessible for connections when the application intent is set to read only. For more information about application intent, see SQL Server Books Online. [SQLSTATE 42000] (Error 978). The step failed.
I know when connecting through SSMS can use application intent = read only, but How to set application intent = read only to the sql server agent jobs?
Naresh