# GetDatabaseOwnersAsync Method

## Overloads

| [GetDatabaseOwnersAsync(String, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseOwnersAsync.htm#Qlik_Engine_IApp_GetDatabaseOwnersAsync_System_String_System_String_) |  | Lists the owners of a database for a ODBC, OLEDB or CUSTOM connection. |
| --- | --- | --- |
| [GetDatabaseOwnersAsync(AsyncHandle, String, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseOwnersAsync.htm#Qlik_Engine_IApp_GetDatabaseOwnersAsync_Qlik_Engine_AsyncHandle_System_String_System_String_) |  | Lists the owners of a database for a ODBC, OLEDB or CUSTOM connection. |
| [GetDatabaseOwnersAsync<T>(AsyncHandle, Func<Response, T>, String, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseOwnersAsync.htm#Qlik_Engine_IApp_GetDatabaseOwnersAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__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.IApp.GetDatabaseOwnersAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseOwnersAsync.htm)

## GetDatabaseOwnersAsync(String, String)

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

### Declaration

```

          Task<IEnumerable<DatabaseOwner>> GetDatabaseOwnersAsync([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.Threading.Tasks.Task&lt;System.Collections.Generic.IEnumerable&lt;[DatabaseOwner](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.DatabaseOwner.htm)&gt;&gt; |  |

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

## GetDatabaseOwnersAsync(AsyncHandle, String, String)

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

### Declaration

```

          Task<IEnumerable<DatabaseOwner>> GetDatabaseOwnersAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.String | connectionId | Identifier of the connection. |
| System.String | database | Name of the database. |

### Returns

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

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

## GetDatabaseOwnersAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, String, String)

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

### Declaration

```
Task<T> GetDatabaseOwnersAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| System.String | connectionId | Identifier of the connection. |
| System.String | database | Name of the database. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |