# JDBC plugins with elasticsearch-1.5.2

**URL:** <https://discuss.elastic.co/t/jdbc-plugins-with-elasticsearch-1-5-2/25412>\
**Category:** Elasticsearch\
**Created:** [July 13, 2015, 5:25am UTC](https://discuss.elastic.co/t/jdbc-plugins-with-elasticsearch-1-5-2/25412 "2015-07-13T05:25:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoshanKumar\_C\_Mutha](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@RoshanKumar\_C\_Mutha](https://discuss.elastic.co/u/RoshanKumar_C_Mutha)\
**Post date:** [July 13, 2015, 5:25am UTC](https://discuss.elastic.co/t/jdbc-plugins-with-elasticsearch-1-5-2/25412/1 "2015-07-13T05:25:46Z")

</div>

I saw many people using JDBC plugins to import table data in Elastic search. i am not able to use it from last two days.  
MY Requirement : I need to get data from mssql table to my elastic search.  
ES : elasticsearch-1.5.2  
MSSQL : Database server used is MS SQL Server 2008 R2.  
I have used version 1.4 and 1.6 but not able to proceed.  
Example used:

1. installed JDBC jar and plugin into ES.
2. Created river.  
[http://localhost:9200/\_river/riskevent/\_meta](http://localhost:9200/_river/riskevent/_meta)  
{  
"type":"jdbc",  
"jdbc": {  
"driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver",  
"url":"jdbc:sqlserver://localhost:1433;databaseName=db",  
"user":"fd","password":"pass",  
"sql":"select \* from mytable",  
"poll":"30s"  
},  
"index": {  
"index":"riskevent",  
"type":"risk",  
"bulk\_size":1000  
}  
}

Reference : [http://nitschinger.at/Elastic-Search-and-SQL-Server-are-sitting-in-a-tree](http://nitschinger.at/Elastic-Search-and-SQL-Server-are-sitting-in-a-tree)

Thanks in advance.

---

<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:** [July 6, 2017, 12:01am UTC](https://discuss.elastic.co/t/jdbc-plugins-with-elasticsearch-1-5-2/25412/2 "2017-07-06T00:01:57Z")

</div>


