# GetDatabaseTablePreviewAsync Method

## Overloads

| [GetDatabaseTablePreviewAsync(String, String, String, String, FilterInfo)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseTablePreviewAsync.htm#Qlik_Engine_IApp_GetDatabaseTablePreviewAsync_System_String_System_String_System_String_System_String_Qlik_Engine_FilterInfo_) |  | Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection. |
| --- | --- | --- |
| [GetDatabaseTablePreviewAsync(AsyncHandle, String, String, String, String, FilterInfo)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseTablePreviewAsync.htm#Qlik_Engine_IApp_GetDatabaseTablePreviewAsync_Qlik_Engine_AsyncHandle_System_String_System_String_System_String_System_String_Qlik_Engine_FilterInfo_) |  | Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection. |
| [GetDatabaseTablePreviewAsync<T>(AsyncHandle, Func<Response, T>, String, String, String, String, FilterInfo)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.GetDatabaseTablePreviewAsync.htm#Qlik_Engine_IApp_GetDatabaseTablePreviewAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_System_String_System_String_System_String_Qlik_Engine_FilterInfo_) |  | Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection. |

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

## GetDatabaseTablePreviewAsync(String, String, String, String, FilterInfo)

Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection.

### Declaration

```

          Task<GetDatabaseTablePreviewResult> GetDatabaseTablePreviewAsync([QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null, [QixName("qOwner")] string owner = null, [QixName("qTable")] string table, [QixName("qConditions")] FilterInfo conditions = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | connectionId | Identifier of the connection. |
| System.String | database | Name of the database.<br>If `qDatabase` is not set then `qOwner` must be set. |
| System.String | owner | Owner of the database.<br>If `qOwner` is not set then `qDatabase` must be set. |
| System.String | table | Name of the table. |
| [FilterInfo](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.FilterInfo.htm) | conditions |  |

### Returns

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

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

## GetDatabaseTablePreviewAsync(AsyncHandle, String, String, String, String, FilterInfo)

Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection.

### Declaration

```

          Task<GetDatabaseTablePreviewResult> GetDatabaseTablePreviewAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null, [QixName("qOwner")] string owner = null, [QixName("qTable")] string table, [QixName("qConditions")] FilterInfo conditions = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/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.<br>If `qDatabase` is not set then `qOwner` must be set. |
| System.String | owner | Owner of the database.<br>If `qOwner` is not set then `qDatabase` must be set. |
| System.String | table | Name of the table. |
| [FilterInfo](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.FilterInfo.htm) | conditions |  |

### Returns

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

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

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

Retrieves the values of the specified table of a database for a ODBC, OLEDB or CUSTOM connection.

### Declaration

```
Task<T> GetDatabaseTablePreviewAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnectionId")] string connectionId, [QixName("qDatabase")] string database = null, [QixName("qOwner")] string owner = null, [QixName("qTable")] string table, [QixName("qConditions")] FilterInfo conditions = null)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/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/May2026/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.<br>If `qDatabase` is not set then `qOwner` must be set. |
| System.String | owner | Owner of the database.<br>If `qOwner` is not set then `qDatabase` must be set. |
| System.String | table | Name of the table. |
| [FilterInfo](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.FilterInfo.htm) | conditions |  |

### Returns

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

### Type Parameters

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