excel.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[sql-client-apps-excel]]
  4. === Microsoft Excel
  5. [quote, https://www.techopedia.com/definition/5430/microsoft-excel]
  6. ____
  7. https://products.office.com/en/excel[Microsoft Excel] is a software program [...] that allows users to organize, format and calculate data
  8. with formulas using a spreadsheet system.
  9. ____
  10. ==== Prerequisites
  11. * Microsoft Office 2016 or higher
  12. * {es-sql} <<sql-odbc, ODBC driver>>
  13. * A preconfigured User or System DSN (see <<dsn-configuration,Configuration>> section on how to configure a DSN).
  14. ==== Load data into a spreadsheet
  15. First, you'll need to choose ODBC as the source to load data from. To do so, click on the _Data_ tab, then _New Query_ button, in the
  16. drop-down menu expand _From Other Sources_, then choose _From ODBC_:
  17. [[apps_excel_fromodbc]]
  18. .ODBC as data source
  19. image:images/sql/odbc/apps_excel_fromodbc.png[]
  20. This will open a new window with a drop down menu populated with the DSNs that Excel found on the system. Choose a DSN configured to
  21. connect to your {es} instance and press the _OK_ button:
  22. [[apps_excel_dsn]]
  23. .Choose a DSN
  24. image:images/sql/odbc/apps_excel_dsn.png[]
  25. This will lead to a new window, allowing the user to input the connection credentials.
  26. A username might be required by Excel even if the {es} instance has no security enabled. Providing a bogus username with no password in
  27. this case will not hinder the connectivity. Note however that Excel will cache these credentials (so in case you do have security enabled,
  28. you won't be prompted for the credentials a second time).
  29. Fill in the username and the password and press
  30. _Connect_.
  31. [[apps_excel_cred]]
  32. .Provide connection credentials
  33. image:images/sql/odbc/apps_excel_cred.png[]
  34. Once connected, Excel will read {es}'s catalog and offer the user a choice of tables (indices) to load data from. Clicking on one of the
  35. tables will load a preview of the data within:
  36. [[apps_excel_picktable]]
  37. .Pick table to load
  38. image:images/sql/odbc/apps_excel_picktable.png[]
  39. Now click the _Load_ button, which will have Excel load all the data from the table into a spreadsheet:
  40. [[apps_excel_loaded]]
  41. .Data loaded in spreadsheet
  42. image:images/sql/odbc/apps_excel_loaded.png[]
  43. // vim: set noet fenc=utf-8 ff=dos sts=0 sw=4 ts=4 tw=138 columns=140