Skip to content

Commit 0669e4d

Browse files
authored
Merge pull request #157397 from jovanpop-msft/patch-207
Update tutorial-logical-data-warehouse.md
2 parents b8bf95c + f103b10 commit 0669e4d

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

articles/synapse-analytics/sql/tutorial-logical-data-warehouse.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ CREATE EXTERNAL DATA SOURCE ecdc_cases WITH (
4848
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.
4949

5050
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.
5454

5555
As a prerequisite, you will need to create a master key in the database:
5656
```sql
@@ -73,7 +73,8 @@ In order to access Cosmos DB analytical storage, you need to define a credential
7373

7474
```sql
7575
CREATE DATABASE SCOPED CREDENTIAL MyCosmosDbAccountCredential
76-
WITH IDENTITY = 'SHARED ACCESS SIGNATURE', SECRET = 's5zarR2pT0JWH9k8roipnWxUYBegOuFGjJpSjGlR36y86cW0GQ6RaaG8kGjsRAQoWMw1QKTkkX8HQtFpJjC8Hg==';
76+
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
77+
SECRET = 's5zarR2pT0JWH9k8roipnWxUYBegOuFGjJpSjGlR36y86cW0GQ6RaaG8kGjsRAQoWMw1QKTkkX8HQtFpJjC8Hg==';
7778
```
7879

7980
### Define external file formats
@@ -118,19 +119,19 @@ The following external table is referencing the ECDC COVID parquet file placed i
118119

119120
```sql
120121
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)
134135
) with (
135136
data_source= ecdc_cases,
136137
location = 'latest/ecdc_cases.parquet',
@@ -196,6 +197,13 @@ The security rules depend on your security policies. Some generic guidelines are
196197
- You should provide `SELECT` permission only to the tables that some user should be able to use.
197198
- 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.
198199

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+
199207
## Next steps
200208

201209
- 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

Comments
 (0)