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: articles/synapse-analytics/sql/tutorial-logical-data-warehouse.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,9 @@ CREATE EXTERNAL DATA SOURCE ecdc_cases WITH (
48
48
A caller may access data source without credential if an owner of data source allowed anonymous access or give explicit access to Azure AD identity of the caller.
49
49
50
50
You can explicitly define a custom credential that will be used while accessing data on external data source.
51
-
- Managed Identity of the Synapse workspace
52
-
- Shared Access Signature of the Azure storage
53
-
- Read-only Cosmos Db account key
51
+
-[Managed Identity](develop-storage-files-storage-access-control.md?tabs=managed-identity) of the Synapse workspace
52
+
-[Shared Access Signature](develop-storage-files-storage-access-control.md?tabs=shared-access-signature) of the Azure storage
53
+
- Read-only Cosmos Db account key that enables you to read Cosmos DB analytical storage.
54
54
55
55
As a prerequisite, you will need to create a master key in the database:
56
56
```sql
@@ -73,7 +73,8 @@ In order to access Cosmos DB analytical storage, you need to define a credential
@@ -118,19 +119,19 @@ The following external table is referencing the ECDC COVID parquet file placed i
118
119
119
120
```sql
120
121
create external table ecdc_adls.cases (
121
-
date_rep date,
122
-
day smallint,
123
-
month smallint,
124
-
year smallint,
125
-
cases smallint,
126
-
deaths smallint,
127
-
countries_and_territories varchar(256),
128
-
geo_id varchar(60),
129
-
country_territory_code varchar(16),
130
-
pop_data_2018 int,
131
-
continent_exp varchar(32),
132
-
load_date datetime2(7),
133
-
iso_country varchar(16)
122
+
date_rep date,
123
+
day smallint,
124
+
month smallint,
125
+
year smallint,
126
+
cases smallint,
127
+
deaths smallint,
128
+
countries_and_territories varchar(256),
129
+
geo_id varchar(60),
130
+
country_territory_code varchar(16),
131
+
pop_data_2018 int,
132
+
continent_exp varchar(32),
133
+
load_date datetime2(7),
134
+
iso_country varchar(16)
134
135
) with (
135
136
data_source= ecdc_cases,
136
137
location ='latest/ecdc_cases.parquet',
@@ -196,6 +197,13 @@ The security rules depend on your security policies. Some generic guidelines are
196
197
- You should provide `SELECT` permission only to the tables that some user should be able to use.
197
198
- If you are providing access to data using the views, you should grant `REFERENCES` permission to the credential that will be used to access external data source.
198
199
200
+
This user has minimal permissions needed to query external data. If you want to create a power-user who can set up permissions, external tables and views, you can give
201
+
`CONTROL` permission to the user:
202
+
203
+
```sql
204
+
GRANT CONTROL TO [jovan@contoso.com]
205
+
```
206
+
199
207
## Next steps
200
208
201
209
- To learn how to connect serverless SQL pool to Power BI Desktop and create reports, see [Connect serverless SQL pool to Power BI Desktop and create reports](tutorial-connect-power-bi-desktop.md).
0 commit comments