# Best way to export data do SQL database

**URL:** <https://discuss.elastic.co/t/best-way-to-export-data-do-sql-database/264462>\
**Category:** Elasticsearch\
**Created:** [February 16, 2021, 6:08pm UTC](https://discuss.elastic.co/t/best-way-to-export-data-do-sql-database/264462 "2021-02-16T18:08:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr.Simik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr.simik/32/38082_2.png) [@Petr.Simik](https://discuss.elastic.co/u/Petr.Simik)\
**Post date:** [February 16, 2021, 6:08pm UTC](https://discuss.elastic.co/t/best-way-to-export-data-do-sql-database/264462/1 "2021-02-16T18:08:45Z")

</div>

Hi,  
could you help me advice  
What tools/techniques do you recommend to export data to SQL Database.  
(PostgreSQL/Oracle or any other)  
I need aggregations results export to SQL database (continuous query).

I supposed to use Transform API and later export them using some tool.  
Scroll API and some transformation.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [February 16, 2021, 7:16pm UTC](https://discuss.elastic.co/t/best-way-to-export-data-do-sql-database/264462/2 "2021-02-16T19:16:22Z")

</div>

Don't believe there is an out of the box solution.

I would pick a programming language that has an [Elastic Client](https://www.elastic.co/guide/en/elasticsearch/client/index.html) and read from the index you create using the Transform API and then use JDBC to write the results to the DB of your choice.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 16, 2021, 7:16pm UTC](https://discuss.elastic.co/t/best-way-to-export-data-do-sql-database/264462/3 "2021-03-16T19:16:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
