# Extract data from SQL Server

**URL:** <https://discuss.elastic.co/t/extract-data-from-sql-server/217360>\
**Category:** Logstash\
**Created:** [January 31, 2020, 11:35am UTC](https://discuss.elastic.co/t/extract-data-from-sql-server/217360 "2020-01-31T11:35:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mbt\_Mbt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbt_mbt/32/56310_2.png) [@Mbt\_Mbt](https://discuss.elastic.co/u/Mbt_Mbt)\
**Post date:** [January 31, 2020, 11:35am UTC](https://discuss.elastic.co/t/extract-data-from-sql-server/217360/1 "2020-01-31T11:35:34Z")

</div>

Good Morning,

I am having trouble accessing the data in the SQLExpress database.I don't receive answers in elasticsearch

Downloaded de JDBC driver and put it in te route: C:\Users\admin\Desktop\sqljdbc\_4.2\esn\jre8\sqljdbc42.jar

The configuration file I have is as follows:

input {  
jdbc {  
jdbc\_driver\_library =\> "C:\Users\admin\Desktop\sqljdbc\_4.2\esn\jre8\sqljdbc42.jar"  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
jdbc\_connection\_string =\> "jdbc:sqlserver://localhost\SQLEXPRESS;databaseName=test;user=Data Gateways Database SQL User;password=passwordDB"  
schedule =\> "5 \* \* \* \*"  
statement =\> "SELECT \* FROM dbo.datos"  
}  
}

output {  
elasticsearch {  
hosts =\> "localhost:9200"  
manage\_template =\> false  
index =\> "datos"  
}  
}

Can someone give me a hand?

---

<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:** [February 28, 2020, 11:35am UTC](https://discuss.elastic.co/t/extract-data-from-sql-server/217360/2 "2020-02-28T11:35:41Z")

</div>

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