We have Always ON setup for our database. Users are connecting to our database using listener URL.
We are currently asking users to use ApplicationIntent = ReadOnly to redirect users to secondary replica. But, still many users are connecting to PRIMARY, without changing connection string.
We see that, there is an option of "Allow All connections" to Secondary replica. Will that option take care of automatically routing read queries to secondary replica, even without setting ApplicationIntent = Readonly in the connection string?
We read about it: https://learn.microsoft.com/en-us/archive/blogs/sqlserverstorageengine/alwayson-why-there-are-two-options-to-enable-a-secondary-replica-for-read-workload . But, still not very clear on how it will work.
Can you please tell us, is there a way to implement redirecting read only queries to secondary replica transparently ?