How to get active project default Database Connection Name

Hi,

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

Hi Nader,

By using this system.db.getConnectionInfo - Ignition User Manual 8.1 - Ignition Documentation?
If you don't specify the name parameter, it will use the project default database connection.

connectionInfo = system.db.getConnectionInfo()
name = connectionInfo.getValueAt(0, "name")
2 Likes