Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Job failed. The target database ('XXX') is in an availability group and is currently accessible for connections when the application intent is set to read only.

$
0
0

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


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>