Hi,I am trying to create a job that runs against my High Availability listener server.It is a fairly simple SQL statement in the job - execute tsql. When I try and run the job I get the error:[code="sql"]Executed as user: NT SERVICE\SQLAgent$SQL2014A. The target database ('BB_Prod') 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.[/code]I thought there was a way to run a select statement as a job against the listener? The tsql step is only a select.Is there a way to pass in the application intent = readonly as part of my SQL statement?
↧