Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2021 11:42 AM
@prasad vaze I don't use SSMS (not a Windows user), and I'm not even sure if it will work with Databricks. However, I did want to list the steps to get DBvisualizer to work:
- Download Databricks' JDBC drivers and extract them on your computer
- Start DbVisualizer and in Preferences > General > Driver Manager, add the folder where you extracted the driver to the search path. Click Ok to close the preferences dialog.
- Click Tools > Driver Manager and add a JDBC (Generic) driver
- Name the new driver "Databricks" and provide this JDBC URL: jdbc:spark://<workspace>:443/default;transportMode=http;ssl=1;AuthMech=3;httpPath=/sql/1.0/endpoints/<endpoint>
- Driver class should be com.simba.spark.jdbc.Driver
- In the left pane, add a new Connection. Settings format will (by default) be Database URL.
- Enter this in Database URL: jdbc:spark://{{workspace}}:443/default;transportMode=http;ssl=1;AuthMech=3;httpPath=/sql/1.0/endpoints/{{endpoint_id}};
- Replace the values of {{workspace}} and {{endpoint_id}}. workspace_id is just the DNS name of your workspace, and endpoint_id can be found in Databricks clicking in the left nav on SQL > SQL Endpoints > Connection Details. It's in the last fragment in the HTTP path field e.g. /sql/1.0/endpoints/{{workspace_id}}
- In the same settings page in Databricks, click "Create a personal access token" (PAT) and copy the value
- Back in DbVisualizer in the Connection page, set Database Userid to "token" and Database Password to the value of the PAT
- Now you can connect!
- Note that you may have to issue a "use <database_name>" statement before your query (in case you get a "table or view not found" error