Clovertech
› Clovertech Forums › Cloverleaf › Add Read_ONLY option to DB connection string
I am needing to specify to connect to our ready-only DB node. Has anyone else had to do this and can you share the how-to if so?
If you mean the sql server (secondary) readonly node, you can use ‘ApplicationIntent=ReadOnly’ in your db connection.
Like so: jdbc:sqlserver://SQLservername:1433;DatabaseName=DB;ApplicationIntent=ReadOnly;
I only used this in a Java UPOC, but it should work in your regular JDBC thread as well.
because wordpress won’t show the full url, here its pasted broken up by the semicolon:
jdbc:sqlserver://SQLservername:1433; DatabaseName=DB; ApplicationIntent=ReadOnly;
This should be one single string without line breaks when you fill it in in Cloverleaf
So in the URL format for the Database URL under the “Edit Database Connection”?
jdbc:sqlserver://<server>:<port1433>;DatabaseName=<database>;???????