# GetDatabaseOwners Method

## Overloads

| [GetDatabaseOwners(String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.App.GetDatabaseOwners.htm#Qlik_Engine_App_GetDatabaseOwners_System_String_System_String_) |  | Lists the owners of a database for a ODBC, OLEDB or CUSTOM connection. |
| --- | --- | --- |

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

## GetDatabaseOwners(String, String)

Lists the owners of a database for a ODBC, OLEDB or CUSTOM connection.

### Declaration

```

          public IEnumerable<DatabaseOwner> GetDatabaseOwners([QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection. |
| System.String | database | Name of the database. |

### Returns

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

### Implements

[IApp.GetDatabaseOwners(String, String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseOwners.htm#Qlik_Engine_IApp_GetDatabaseOwners_System_String_System_String_)