# Connect sql server database to elasticsearch

**URL:** <https://discuss.elastic.co/t/connect-sql-server-database-to-elasticsearch/327465>\
**Category:** Elasticsearch\
**Created:** [March 10, 2023, 4:17pm UTC](https://discuss.elastic.co/t/connect-sql-server-database-to-elasticsearch/327465 "2023-03-10T16:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farah\_Bhr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farah_bhr/32/82537_2.png) [@Farah\_Bhr](https://discuss.elastic.co/u/Farah_Bhr)\
**Post date:** [March 10, 2023, 4:17pm UTC](https://discuss.elastic.co/t/connect-sql-server-database-to-elasticsearch/327465/1 "2023-03-10T16:17:45Z")

</div>

I want to connect sql server database to elasticsearch without copying the sql data to elasticsearch, with a simple call of the sql data or simple connection , without loading the data from sql server to elasticsearch  
I know there is the Elasticsearch SQL JDBC driver, but as far as I know this jdbc loads the data from sql to elasticsearch  
Is there a way to do so without copying the data ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 10, 2023, 4:23pm UTC](https://discuss.elastic.co/t/connect-sql-server-database-to-elasticsearch/327465/2 "2023-03-10T16:23:56Z")

</div>

> [@Farah\_Bhr](#):
>
> I know there is the Elasticsearch SQL JDBC driver, but as far as I know this jdbc loads the data from sql to elasticsearch

The Elasticsearch JDBC driver allows you to query data held in Elasticsearch via JDBC.

> [@Farah\_Bhr](#):
>
> I want to connect sql server database to elasticsearch without copying the sql data to elasticsearch, with a simple call of the sql data or simple connection , without loading the data from sql server to elasticsearch

If you want to query the data through Elasticsearch it must reside in Elasticsearch. You must therefore copy the data over.

---

<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:** [April 7, 2023, 4:24pm UTC](https://discuss.elastic.co/t/connect-sql-server-database-to-elasticsearch/327465/3 "2023-04-07T16:24:13Z")

</div>

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