Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Verify that ODBC recognizes the installed drivers using odbcListDrivers() command.

    Code Block
    library(odbc)
    sort(unique(odbcListDrivers()[[1]]))

    Here’s a screenshot for reference.

    Connection_R2.pngImage Modified
  2. Connect to Kyvos using the following command.

    Code Block
    library(odbc)
    con <- dbConnect(odbc::odbc(), driver = "Kyvos ODBC Driver", UserName = "username", PWD = "password", host = "192.168.8.190",   port=8081, HTTPPath = "kyvos/sql")
  3. Verify the above connection with the command below.

    Code Block
    dbIsValid(con)
    #Returns TRUE if connection is established else return FALSE.
  4. Run the queries using the following command.

    Code Block
    dbGetQuery(con,'Paste your SQL query here')
  5. After executing the queries close the connection using the dbDisconnect(con). command.

  6. Execute the dbIsValid(con) command to ensure that the connection is disconnected.