Skip to content

Commit aa38fb9

Browse files
committed
20230825 create data source update
1 parent 9e648a2 commit aa38fb9

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

‎docs/t-sql/statements/create-external-data-source-transact-sql.md‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,8 +1231,8 @@ Provides the connectivity protocol and path to the external data source.
12311231

12321232
| External Data Source | Connector location prefix | Location path | Supported locations by product / service | Authentication |
12331233
| ----------------------- | --------------- | ----------------------------------------------------- | ---------------------------------------- | --: |
1234-
| Azure Storage Account(V2) | `abs` | `abs://<storage_account_name>.blob.core.windows.net/<container_name>` | Starting with [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)]<br />Hierarchical Namespace is supported. | Shared access signature (SAS) |
1235-
| Azure Data Lake Storage Gen2 | `adls` | `adls://<storage_account_name>.dfs.core.windows.net/<container_name>` | Starting with [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)] | Shared access signature (SAS) |
1234+
| Azure Storage Account(V2) | `abs` | `abs://<container_name>@<storage_account_name>.blob.core.windows.net/` or <br /> `abs://<storage_account_name>.blob.core.windows.net/<container_name>` | Starting with [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)]<br />Hierarchical Namespace is supported. | Shared access signature (SAS) |
1235+
| Azure Data Lake Storage Gen2 | `adls` | `adls://<container_name>@<storage_account_name>.dfs.core.windows.net/` or <br /> `adls://<storage_account_name>.dfs.core.windows.net/<container_name>` | Starting with [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)] | Shared access signature (SAS) |
12361236
| [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] | `sqlserver`|`<server_name>[\<instance_name>][:port]`| Starting with [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] | SQL authentication only |
12371237
| Oracle | `oracle` | `<server_name>[:port]` | Starting with [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] | Basic authentication only |
12381238
| Teradata | `teradata` | `<server_name>[:port]` | Starting with [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] | Basic authentication only |
@@ -1415,6 +1415,17 @@ Users will also need to configure their external data sources to use new connect
14151415
| Azure Blob Storage | wasb[s] | abs |
14161416
| ADLS Gen2 | abfs[s] | adls |
14171417

1418+
SQL Server 2022 supports two URL formats for both Azure Storage Account v2 (abs) and Azure Data Lake Gen2 (adls), the location path can be `<container>@<storage_account_name>..`or `<storage_account_name>../<container>`. For example:
1419+
1420+
Azure Storage Account v2:
1421+
`abs://<container>@<storage_account_name>.blob.core.windows.net` or `abs://<storage_account_name>.blob.core.windows.net/<container>`
1422+
1423+
Azure Data Lake Gen2 supports:
1424+
`adls://<container>@<storage_account_name>.blob.core.windows.net` or `adls://<storage_account_name>.dfs.core.windows.net/<container>`
1425+
1426+
Both are fully supported, `<container>@<storage_account_name>../` follows the same format as Azure SQL Managed Instance, and it is the recommended format for compatibility.
1427+
1428+
14181429
## Examples
14191430

14201431
> [!IMPORTANT]
@@ -1672,7 +1683,7 @@ GO
16721683
-- Create an external data source with CREDENTIAL option.
16731684
CREATE EXTERNAL DATA SOURCE MyAzureStorage
16741685
WITH
1675-
( LOCATION = 'abs://<storage_account_name>.blob.core.windows.net/<container>' ,
1686+
( LOCATION = 'abs://<container>@<storage_account_name>.blob.core.windows.net/' ,
16761687
CREDENTIAL = AzureStorageCredentialv2,
16771688
) ;
16781689
```
@@ -1694,7 +1705,7 @@ GO
16941705
CREATE EXTERNAL DATA SOURCE data_lake_gen2_dfs
16951706
WITH
16961707
(
1697-
LOCATION = 'adls://<storage_account>.dfs.core.windows.net'
1708+
LOCATION = 'adls://<container>@<storage_account>.dfs.core.windows.net'
16981709
,CREDENTIAL = datalakegen2
16991710
)
17001711
```

0 commit comments

Comments
 (0)