I am currently utilizing SQL Server with an Always On Available Group. In my AG, I have a primary active node and a secondary node used for read only queries. To access the secondary node, we pass ApplicationIntent=ReadOnly as part of the connection string. This works great under normal circumstances in our .net code.
I was recently asked to setup a datasource in AWS QuickSight pointing to our Secondary readonly node utilizing ApplicationIntent=ReadOnly. Unfortunately the datasource setup does not allow for the addition of any connection string properties outside of server, port, and database name. We have reached out to the AWS QuickSight team and added a feature request. But we dont have an ETA on if and when that could be completed.
So what I am looking for here is a workaround, hack, or some other magic idea to get this to work. I am currently looking into the AWS Quicksight CLI to see if there are any additional parameters that are not built into the UI. Another thought I had (and I dont even know if this is possible), would be to create some sort of SQL Proxy/Forwarder which could be an intermediary piece of software that could append the ApplicationIntent=ReadOnly config parameters to the connection string.
Does anyone have any other ideas? Are there any other features of SQL Server that could solve this? Is my Man in the Middle software idea even possible? Or is there something else I could create to do this?