# Failed to connect to database.\\nConnection failed to open the DB connection: could not find driver

**URL:** <https://community.dreamfactory.com/t/failed-to-connect-to-database-nconnection-failed-to-open-the-db-connection-could-not-find-driver/1665>\
**Category:** REST API\
**Created:** [October 24, 2015, 9:19pm UTC](https://community.dreamfactory.com/t/failed-to-connect-to-database-nconnection-failed-to-open-the-db-connection-could-not-find-driver/1665 "2015-10-24T21:19:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Anderson](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@Luis\_Anderson](https://community.dreamfactory.com/u/Luis_Anderson)\
**Post date:** [October 24, 2015, 9:19pm UTC](https://community.dreamfactory.com/t/failed-to-connect-to-database-nconnection-failed-to-open-the-db-connection-could-not-find-driver/1665/1 "2015-10-24T21:19:41Z")

</div>

Cannot connect NEW SERVICE to localhost SQL. All the time getting the same error: Failed to connect to database.\nConnection failed to open the DB connection: could not find driver

Any help of how to solve that?

Thanks

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [October 26, 2015, 12:15pm UTC](https://community.dreamfactory.com/t/failed-to-connect-to-database-nconnection-failed-to-open-the-db-connection-could-not-find-driver/1665/2 "2015-10-26T12:15:23Z")

</div>

You need to install the appropriate drivers. I assume from your post you are using Microsoft SQL. These instructions from the 1.9 wiki cover installing the MSSQL drivers. [https://github.com/dreamfactorysoftware/dsp-core/wiki/SQL-Database-Services#sqlsrv](https://github.com/dreamfactorysoftware/dsp-core/wiki/SQL-Database-Services#sqlsrv)
