You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/data-platform/azure-synapse-link-create-view.md
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -41,31 +41,34 @@ This section describes the prerequisites necessary to create a view of your Data
41
41
42
42
-**Synapse administrator.** You must be granted **Synapse Administrator** role access within Synapse studio.
43
43
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.
45
44
46
45
## Create a view of your Dataverse data
47
46
48
47
1. In Power Apps, select your Azure Synapse Link from the list, and then select **Go to Azure Synapse workspace**.
49
48
50
49

51
50
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**.
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**.
57
59
58
60
```sql
59
-
CREATE VIEW [VIEW NAME]
61
+
CREATE OR ALTER VIEW [SCHEMA NAME].[VIEW NAME]
60
62
AS
61
63
SELECT [COLUMN NAMES]
62
64
FROM [DATAVERSE DATABASE NAME].[dbo].[TABLE NAME]
63
65
64
66
```
65
67
66
-
4. Find the new view under the **Views** folder in the SQL database.
0 commit comments