# How to get active project default Database Connection Name

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-active-project-default-database-connection-name/70813>\
**Category:** Ignition\
**Created:** [March 9, 2023, 7:04am UTC](https://forum.inductiveautomation.com/t/how-to-get-active-project-default-database-connection-name/70813 "2023-03-09T07:04:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [March 9, 2023, 7:04am UTC](https://forum.inductiveautomation.com/t/how-to-get-active-project-default-database-connection-name/70813/1 "2023-03-09T07:04:23Z")

</div>

Hi,

How can I get the default Database or History Provider of the active project?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bbcf6f88b806b6c384b9b4a51327f00f495efc81.png)

---

<div class="post-metadata">

**Author:** ![andreas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andreas/32/18981_2.png) [@andreas](https://forum.inductiveautomation.com/u/andreas)\
**Post date:** [March 9, 2023, 8:47am UTC](https://forum.inductiveautomation.com/t/how-to-get-active-project-default-database-connection-name/70813/2 "2023-03-09T08:47:36Z")

</div>

Hi Nader,

By using this [system.db.getConnectionInfo - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.db.getConnectionInfo)?  
If you don't specify the name parameter, it will use the project default database connection.

```auto
connectionInfo = system.db.getConnectionInfo()
name = connectionInfo.getValueAt(0, "name")

```
