Skip to content

Commit 8aa6efd

Browse files
Merge pull request #298359 from azaricstefan/patch-19
Update create-use-external-tables.md
2 parents 0a867f5 + 6337782 commit 8aa6efd

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

articles/synapse-analytics/sql/create-use-external-tables.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,17 @@ The following table lists the data formats supported:
3636

3737
## Prerequisites
3838

39-
Your first step is to create a database where the tables will be created. Before creating a database scoped credential, the database must have a master key to protect the credential. For more information on this, see [CREATE MASTER KEY (Transact-SQL)](/sql/t-sql/statements/create-master-key-transact-sql). Then create the following objects that are used in this sample:
40-
- DATABASE SCOPED CREDENTIAL `sqlondemand` that enables access to SAS-protected `https://sqlondemandstorage.blob.core.windows.net` Azure storage account.
39+
Your first step is to create a database where the tables will be created. The database must have a master key to protect the credentials. For more information on this, see [CREATE MASTER KEY (Transact-SQL)](/sql/t-sql/statements/create-master-key-transact-sql). Then create the following objects that are used in this sample:
40+
- EXTERNAL DATA SOURCE `sqlondemanddemo` that references public demo storage account, and EXTERNAL DATA SOURCE `nyctlc` that references publicly available Azure storage account on location `https://azureopendatastorage.blob.core.windows.net/nyctlc/`.
4141

4242
```sql
43-
CREATE DATABASE SCOPED CREDENTIAL [sqlondemand]
44-
WITH IDENTITY='SHARED ACCESS SIGNATURE',
45-
SECRET = 'sv=2022-11-02&ss=b&srt=co&sp=rl&se=2042-11-26T17:40:55Z&st=2024-11-24T09:40:55Z&spr=https&sig=DKZDuSeZhuCWP9IytWLQwu9shcI5pTJ%2Fw5Crw6fD%2BC8%3D'
46-
```
47-
48-
- EXTERNAL DATA SOURCE `sqlondemanddemo` that references demo storage account protected with SAS key, and EXTERNAL DATA SOURCE `nyctlc` that references publicly available Azure storage account on location `https://azureopendatastorage.blob.core.windows.net/nyctlc/`.
49-
50-
```sql
51-
CREATE EXTERNAL DATA SOURCE SqlOnDemandDemo WITH (
52-
LOCATION = 'https://sqlondemandstorage.blob.core.windows.net',
53-
CREDENTIAL = sqlondemand
54-
);
43+
CREATE EXTERNAL DATA SOURCE SqlOnDemandDemo WITH (LOCATION = 'https://fabrictutorialdata.blob.core.windows.net/sampledata/Synapse');
5544
GO
5645
CREATE EXTERNAL DATA SOURCE nyctlc
5746
WITH ( LOCATION = 'https://azureopendatastorage.blob.core.windows.net/nyctlc/')
5847
GO
5948
CREATE EXTERNAL DATA SOURCE DeltaLakeStorage
60-
WITH ( location = 'https://sqlondemandstorage.blob.core.windows.net/delta-lake/' );
49+
WITH ( location = 'https://fabrictutorialdata.blob.core.windows.net/sampledata/Synapse/delta-lake' );
6150
```
6251

6352
- File formats `QuotedCSVWithHeaderFormat` and `ParquetFormat` that describe CSV and parquet file types.
@@ -81,7 +70,7 @@ The queries in this article will be executed on your sample database and use the
8170

8271
You can create external tables that access data on an Azure storage account that allows access to users with some Microsoft Entra identity or SAS key. You can create external tables the same way you create regular SQL Server external tables.
8372

84-
The following query creates an external table that reads *population.csv* file from SynapseSQL demo Azure storage account that is referenced using `sqlondemanddemo` data source and protected with database scoped credential called `sqlondemand`.
73+
The following query creates an external table that reads *population.csv* file from SynapseSQL demo Azure storage account that is referenced using `sqlondemanddemo` data source.
8574

8675
> [!NOTE]
8776
> Change the first line in the query, that is, [mydbname], so you're using the database you created.

0 commit comments

Comments
 (0)