# Get Data Source Connect URL

**URL:** <https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107>\
**Category:** Ignition\
**Created:** [May 1, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107 "2023-05-01T18:58:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [May 1, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/1 "2023-05-01T18:58:09Z")

</div>

There is an existing system function called:

`system.db.setDatasourceConnectURL`

Would it be possible to have a "get" equivalent? Or does anyone out there already have a scripting method to get the database connection URL for a given connection name?

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![Gabriel\_Hernandez](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gabriel_hernandez/32/47179_2.png) [@Gabriel\_Hernandez](https://forum.inductiveautomation.com/u/Gabriel_Hernandez)\
**Post date:** [May 11, 2023, 9:58pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/2 "2023-05-11T21:58:42Z")

</div>

Hi Nicholas,

Currently, there is not an inherent way to achieve this. What are you trying to do with the returned connection URL?

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [May 12, 2023, 2:07pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/3 "2023-05-12T14:07:10Z")

</div>

@Gabriel_Hernandez we have multiple versions of a database, usually when we need to upgrade it's easiest just to standup a new database. We look at them centrally in order to have monitoring of memory remaining, etc.

It would be convenient if we could see the JDBC connection string so we can dynamically determine which version of the database is on the other side.

Now that I'm tying this, I'm also wondering if I can determine which database version it is via query, probably so....

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 12, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/4 "2023-05-12T17:52:05Z")

</div>

> [@nicholas.robinson](#):
>
> I'm also wondering if I can determine which database version it is via query

I can give the ones that I know of:

```plaintext
PostreSQL and MySQL: SELECT VERSION()
SQL Server: SELECT @@VERSION

```

---

<div class="post-metadata">

**Author:** ![dick.willis](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@dick.willis](https://forum.inductiveautomation.com/u/dick.willis)\
**Post date:** [October 1, 2025, 2:14pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/5 "2025-10-01T14:14:34Z")

</div>

I am looking for a way to get a list of what databases I’m connecting to, and the ConnectURL looks like it has the most information … is there a way to GetDataSourceConnectURL? Since we can do a SET … thought it’d be possible to do a GET …

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 1, 2025, 2:31pm UTC](https://forum.inductiveautomation.com/t/get-data-source-connect-url/73107/6 "2025-10-01T14:31:16Z")

</div>

Not in v8.1. The OpenAPI for v8.3 opens up all of this kind of stuff.
