Table Datasets
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | get_datasets | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | delete_dataset | |
| LOOKUP | get_dataset |
Examples
SSIS
Use Power BI Connector in API Source component to read data or in API Destination component to read/write data:
Read from Datasets table using API Source
| Optional Parameters | |
|---|---|
| WorkspaceId | |
Read/write to Datasets table using API Destination
| Optional Parameters | |
|---|---|
| WorkspaceId | |
ODBC application
Use these SQL queries in your ODBC application data source:
Read datasets
<p>Gets datasets from the default workspace.</p>
SELECT *
FROM Datasets
Read datasets in a workspace
<p>Gets datasets from a specific workspace. Supply <code>WorkspaceId</code> in the <code>WITH</code> clause.</p>
SELECT *
FROM Datasets
WITH (WorkspaceId = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee')
Read a dataset by ID
<p>Gets a single dataset by ID. Supply <code>Id</code> in the <code>WHERE</code> clause.</p>
SELECT *
FROM Datasets
WHERE Id='aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Read datasets
<p>Gets datasets from the default workspace.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM Datasets';
EXEC (@MyQuery) AT [LS_TO_POWER_BI_IN_GATEWAY];
Read datasets in a workspace
<p>Gets datasets from a specific workspace. Supply <code>WorkspaceId</code> in the <code>WITH</code> clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM Datasets
WITH (WorkspaceId = ''aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'')';
EXEC (@MyQuery) AT [LS_TO_POWER_BI_IN_GATEWAY];
Read a dataset by ID
<p>Gets a single dataset by ID. Supply <code>Id</code> in the <code>WHERE</code> clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM Datasets
WHERE Id=''aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee''';
EXEC (@MyQuery) AT [LS_TO_POWER_BI_IN_GATEWAY];