Add Read_ONLY option to DB connection string

Homepage Clovertech Forums Cloverleaf Add Read_ONLY option to DB connection string

  • Creator
    Topic
  • #120723
    RICK L. PRITCHETT
    Participant

    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?

Viewing 1 reply thread
  • Author
    Replies
    • #120725
      Arie Klop
      Participant

      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.

      • This reply was modified 1 year, 1 month ago by Arie Klop. Reason: jdbc url not fully visible
      • This reply was modified 1 year, 1 month ago by Arie Klop.
      • This reply was modified 1 year, 1 month ago by Arie Klop.
      • This reply was modified 1 year, 1 month ago by Arie Klop.
      • #120730
        Arie Klop
        Participant

        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

    • #120732
      RICK L. PRITCHETT
      Participant

      So in the URL format for the Database URL under the “Edit Database Connection”?

      jdbc:sqlserver://<server>:<port1433>;DatabaseName=<database>;???????

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10