2018-09-08 09:23:43 -04:00
[role="xpack"]
[testenv="platinum"]
[[sql-client-apps-workbench]]
=== SQL Workbench/J
2020-02-18 15:41:05 -05:00
You can use the {es} JDBC driver to access {es} data from SQL Workbench/J.
2018-09-08 09:23:43 -04:00
2019-03-22 13:40:14 -04:00
IMPORTANT: Elastic does not endorse, promote or provide support for this application; for native Elasticsearch integration in this product, please reach out to its vendor.
2018-09-08 09:23:43 -04:00
==== Prerequisites
2020-02-18 15:41:05 -05:00
* https://www.sql-workbench.eu/[SQL Workbench/J] build 125 or higher
2018-09-08 09:23:43 -04:00
* {es-sql} <<sql-jdbc, JDBC driver>>
==== Add {es} JDBC driver
Add the {es} JDBC driver to SQL Workbench/J through *Manage Drivers* either from the main windows in the *File* menu or from the *Connect* window:
image:images/sql/client-apps/workbench-1-manage-drivers.png[]
2019-08-29 04:13:18 -04:00
Select *Elasticsearch* profile from the left-hand side (if it is missing check the SQL Workbench/J version or add a new entry to the list through the blank page button in the upper left corner):
2018-09-08 09:23:43 -04:00
2019-08-29 04:13:18 -04:00
image:images/sql/client-apps/workbench-2-select-driver.png[]
Add the JDBC jar (if the driver name hasn't been picked up already, click on the magnifier button):
image:images/sql/client-apps/workbench-3-add-jar.png[]
2018-09-08 09:23:43 -04:00
==== Create a new connection profile
With the driver configured, create a new connection profile through *File* > *Connect Window* (or Alt+C shortcut):
2019-08-29 04:13:18 -04:00
image:images/sql/client-apps/workbench-4-connection.png[]
2018-09-08 09:23:43 -04:00
Select the previously configured driver and set the URL of your cluster using the JDBC syntax.
Verify the connection through the *Test* button - a confirmation window should appear that everything is properly configured.
The setup is complete.
==== Execute SQL queries
SQL Workbench/J is ready to talk to {es} through SQL: click on the profile created to execute statements or explore the data:
2019-08-29 04:13:18 -04:00
image:images/sql/client-apps/workbench-5-data.png[]