Skip to content

Commit 062fd91

Browse files
authored
Update azure-synapse-link-create-view.md
1 parent b170f3c commit 062fd91

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

powerapps-docs/maker/data-platform/azure-synapse-link-create-view.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,34 @@ This section describes the prerequisites necessary to create a view of your Data
4141

4242
- **Synapse administrator.** You must be granted **Synapse Administrator** role access within Synapse studio.
4343

44-
- **SQL Database.** This guide assumes you have created an additional SQL database (Serverless Pool or Dedicated Pool) in your Azure Synapse Analytics workspace to save the view.
4544

4645
## Create a view of your Dataverse data
4746

4847
1. In Power Apps, select your Azure Synapse Link from the list, and then select **Go to Azure Synapse workspace**.
4948

5049
![Go to workspace.](media/go-to-workspace.png "Go to workspace")
5150

52-
2. Expand **SQL database**, and select the **...** next to the database where you will store your view. Then select **New SQL script** > **New external table**.
51+
2. Create User-defined schema within Synapse SQL
5352

54-
![New empty script.](media/new-empty-script.png "New empty script")
55-
56-
3. Run a create view script by specifying a **view name**, the **column names**, **Dataverse database name**, and the exported **table name**.
53+
```sql
54+
CREATE SCHEMA [SCHEMA NAME]
55+
GO
56+
```
57+
58+
3. Run a create view script by specifying a **view name**, the **column names**, **Dataverse database name** under the new **schema**, and then exported **table name**.
5759

5860
```sql
59-
CREATE VIEW [VIEW NAME]
61+
CREATE OR ALTER VIEW [SCHEMA NAME].[VIEW NAME]
6062
AS
6163
SELECT [COLUMN NAMES]
6264
FROM [DATAVERSE DATABASE NAME].[dbo].[TABLE NAME]
6365

6466
```
6567

66-
4. Find the new view under the **Views** folder in the SQL database.
68+
## Use a view of your Dataverse data
6769

68-
![Create view result.](media/create-view-result.png "Create view result")
70+
You can use views in your queries the same way you use views in SQL Server queries.
71+
The view will be created and accessible under views folder in **SQL Server Management Studio (SSMS)** or **Azure Data Studio**
6972

7073
### See also
7174

0 commit comments

Comments
 (0)