# GetDatabasesFromConnectionString Method

## Overloads

| [GetDatabasesFromConnectionString(Connection)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetDatabasesFromConnectionString.htm#Qlik_Engine_Hub_GetDatabasesFromConnectionString_Qlik_Engine_Connection_) |  | Lists the databases in a ODBC, OLEDB or CUSTOM data source. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetDatabasesFromConnectionString.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetDatabasesFromConnectionString.htm)

## GetDatabasesFromConnectionString(Connection)

Lists the databases in a ODBC, OLEDB or CUSTOM data source.

### Declaration

```

          public IEnumerable<Database> GetDatabasesFromConnectionString([QixName("qConnection")] Connection connection)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [Connection](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Connection.htm) | connection | Information about the connection. |

### Returns

| Type | Description |
| --- | --- |
| System.Collections.Generic.IEnumerable&lt;[Database](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Database.htm)&gt; |  |

### Implements

[IHub.GetDatabasesFromConnectionString(Connection)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.GetDatabasesFromConnectionString.htm#Qlik_Engine_IHub_GetDatabasesFromConnectionString_Qlik_Engine_Connection_)