# Cannot able to get the SQLSERVER data into elasticsearch

**URL:** <https://discuss.elastic.co/t/cannot-able-to-get-the-sqlserver-data-into-elasticsearch/190223>\
**Category:** Logstash\
**Created:** [July 12, 2019, 11:24am UTC](https://discuss.elastic.co/t/cannot-able-to-get-the-sqlserver-data-into-elasticsearch/190223 "2019-07-12T11:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VIGNESHkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshkumar/32/131369_2.png) [@VIGNESHkumar](https://discuss.elastic.co/u/VIGNESHkumar)\
**Post date:** [July 12, 2019, 11:24am UTC](https://discuss.elastic.co/t/cannot-able-to-get-the-sqlserver-data-into-elasticsearch/190223/1 "2019-07-12T11:24:39Z")

</div>

It shows this error Can anyone please provide suggessions thanks in advance

config File

input {  
jdbc {  
# SqlServer jdbc connection string to your database, productdb  
# "jdbc:sqlserver://HostName\instanceName;database=DBName;user=UserName;password=Password"  
jdbc\_connection\_string =\> "jdbc:sqlserver://BAVNWASCNV03;database=dbname;user=xxx;password=yyy"  
# The user you want to execute your statement as  
jdbc\_user =\> nil  
# The path to your downloaded jdbc driver  
jdbc\_driver\_library =\> "D:\SQL Driver\sqljdbc\_4.2\enu\jre8\sqljdbc42.jar"  
# The name of the driver class for SqlServer  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
# Query for testing purpose  
statement =\> "SELECT \* from simple"  
}  
}  
output{  
elasticsearch { codec =\> json hosts =\> ["localhost:5601"] index =\> "cs\_users" }  
stdout { codec =\> rubydebug }  
}

![error](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b73118cd8f59d176012afec24c607d0171766dc0.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 12, 2019, 4:38pm UTC](https://discuss.elastic.co/t/cannot-able-to-get-the-sqlserver-data-into-elasticsearch/190223/2 "2019-07-12T16:38:20Z")

</div>

Please do not post pictures of text, just post the text.

---

<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:** [August 9, 2019, 4:38pm UTC](https://discuss.elastic.co/t/cannot-able-to-get-the-sqlserver-data-into-elasticsearch/190223/3 "2019-08-09T16:38:23Z")

</div>

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