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/create-use-external-tables.md
+5-16Lines changed: 5 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,28 +36,17 @@ The following table lists the data formats supported:
36
36
37
37
## Prerequisites
38
38
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/`.
- 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 (
CREATE EXTERNAL DATA SOURCE SqlOnDemandDemo WITH (LOCATION ='https://fabrictutorialdata.blob.core.windows.net/sampledata/Synapse');
55
44
GO
56
45
CREATE EXTERNAL DATA SOURCE nyctlc
57
46
WITH ( LOCATION ='https://azureopendatastorage.blob.core.windows.net/nyctlc/')
58
47
GO
59
48
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' );
61
50
```
62
51
63
52
- 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
81
70
82
71
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.
83
72
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 sourceand 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.
85
74
86
75
> [!NOTE]
87
76
> Change the first linein the query, that is, [mydbname], so you're using the database you created.
0 commit comments