# Need help - config.php Setup for using mssql database

**URL:** <https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031>\
**Category:** Questions\
**Created:** [January 16, 2024, 1:46pm UTC](https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031 "2024-01-16T13:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dchappel](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@dchappel](https://kanboard.discourse.group/u/dchappel)\
**Post date:** [January 16, 2024, 1:46pm UTC](https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031/1 "2024-01-16T13:46:19Z")

</div>

Looking for help.

Have successfully run Kanboard on Ubuntu machine with mariadb database.

Looking to do the same using MS Sql Server to keep consistent with our company’s other apps.

Have successfully installed (and have working) Sql Server on Ubuntu.

Have also successfully installed and tested (with php script) the sqlsrv and pdo\_sqlsrv drivers.

It is not clear what changes are needed to the Kanboard config.php file to get things running.

Best result so far is “Internal Error: could not find driver” response in browser window when trying to get to dashboard.

I know mssql is experimental at this point, but is there anyone who has successfully implemented this share their setup suggestions?

---

<div class="post-metadata">

**Author:** ![alfredb](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/alfredb/32/1051_2.png) [@alfredb](https://kanboard.discourse.group/u/alfredb)\
**Post date:** [January 20, 2024, 10:01pm UTC](https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031/2 "2024-01-20T22:01:39Z")

</div>

First off, I don’t use mssql.  
Unfortunately, you didn’t tell, what exactly you tried to configure.

> [@dchappel](#):
>
> It is not clear what changes are needed to the Kanboard config.php file to get things running.

I’d start with the following:

```php
define('DB_DRIVER', 'mssql');

```

You might take a look at the library [README](https://github.com/elvanto/picodb/blob/master/README.md).

---

<div class="post-metadata">

**Author:** ![fred](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@fred](https://kanboard.discourse.group/u/fred)\
**Post date:** [January 26, 2024, 4:10am UTC](https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031/3 "2024-01-26T04:10:25Z")

</div>

You can set `DB_DRIVER` to either `dblib` or `odbc` depending on your server configuration.

If you choose `odbc`, you have to define `DB_ODBC_DSN`.

Other `DB_*` options like `DB_USERNAME` should be similar to the MySQL / Postgresql config options.

Microsoft SQL support has been implemented by a contributor in this pull-request: [Add support for Microsoft SQL Server database by jnahmias · Pull Request #5082 · kanboard/kanboard · GitHub](https://github.com/kanboard/kanboard/pull/5082)

---

<div class="post-metadata">

**Author:** ![Wawello](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/wawello/32/2237_2.png) [@Wawello](https://kanboard.discourse.group/u/Wawello)\
**Post date:** [August 15, 2026, 8:42am UTC](https://kanboard.discourse.group/t/need-help-config-php-setup-for-using-mssql-database/3031/4 "2026-08-15T08:42:27Z")

</div>

Hi.

Can you tell me what these settings in the configuration file mean?

1. `define('DB_RUN_MIGRATIONS', true);`
2. `define('DB_ODBC_DSN', 'kanboard');`

Thank you.
