|
2 | 2 | description: "CREATE EXTERNAL DATA SOURCE (Transact-SQL)" |
3 | 3 | title: "CREATE EXTERNAL DATA SOURCE (Transact-SQL)" |
4 | 4 | ms.custom: "" |
5 | | -ms.date: 4/06/2022 |
| 5 | +ms.date: 4/28/2022 |
6 | 6 | ms.prod: sql |
7 | 7 | ms.prod_service: "database-engine, sql-database, synapse-analytics, pdw" |
8 | 8 | ms.reviewer: "" |
@@ -31,7 +31,7 @@ This article provides the syntax, arguments, remarks, permissions, and examples |
31 | 31 | [!INCLUDE[select-product](../../includes/select-product.md)] |
32 | 32 |
|
33 | 33 | <!-- In addition to moniker ranges for SQL Server, SQL DB, APS, Synapse, and SQL MI, |
34 | | - this article has version moniker ranges for SQL Server 2016, 2017, and 2019 due to the syntax differences between each. |
| 34 | + this article has version moniker ranges for SQL Server 2016, 2017 (Windows and Linux), and 2019 due to the syntax differences between each. |
35 | 35 | Use of the version selector above the TOC is important for this document.--> |
36 | 36 | <!-- At this time the Azure SQL Edge moniker azuresqledge-current is not functional in sql-docs. |
37 | 37 | Per PMs, we have added Azure SQL Edge content to Azure SQL DB range. --> |
@@ -71,12 +71,12 @@ Creates an external data source for PolyBase queries. External data sources are |
71 | 71 | - Data virtualization and data load using [PolyBase][intro_pb] |
72 | 72 | - Bulk load operations using `BULK INSERT` or `OPENROWSET` |
73 | 73 |
|
74 | | -For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
| 74 | +> [!NOTE] |
| 75 | +> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019 and later, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-linux-ver15&preserve-view=true#syntax). |
75 | 76 |
|
76 | 77 | ## <a id="syntax"></a> Syntax for SQL Server 2016 |
77 | 78 |
|
78 | | -> [!NOTE] |
79 | | -> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-linux-ver15&preserve-view=true#syntax). |
| 79 | +For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
80 | 80 |
|
81 | 81 | ```syntaxsql |
82 | 82 | CREATE EXTERNAL DATA SOURCE <data_source_name> |
@@ -297,36 +297,35 @@ WITH |
297 | 297 | ::: moniker range="=sql-server-2017||=sql-server-linux-2017" |
298 | 298 |
|
299 | 299 | ## Overview: SQL Server |
300 | | -[!INCLUDE[SQL2016+](../../includes/applies-to-version/sqlserver2016.md)] |
| 300 | +[!INCLUDE[SQL2017 only](../../includes/applies-to-version/sqlserver2017-only.md)] |
301 | 301 |
|
302 | 302 | Creates an external data source for PolyBase queries. External data sources are used to establish connectivity and support these primary use cases: |
303 | 303 |
|
304 | 304 | - Data virtualization and data load using [PolyBase][intro_pb] |
305 | 305 | - Bulk load operations using `BULK INSERT` or `OPENROWSET` |
306 | 306 |
|
307 | | -For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
308 | | - |
309 | | -## <a id="syntax"></a> Syntax for SQL Server 2017 |
310 | | - |
311 | 307 | ::: moniker-end |
312 | 308 |
|
313 | 309 | ::: moniker range="=sql-server-linux-2017" |
314 | 310 |
|
315 | 311 | > [!NOTE] |
316 | | -> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-linux-ver15&preserve-view=true#syntax). |
| 312 | +> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019 and later, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-linux-ver15&preserve-view=true#syntax). |
317 | 313 |
|
318 | 314 | ::: moniker-end |
319 | 315 |
|
320 | 316 | ::: moniker range="=sql-server-2017" |
321 | 317 |
|
322 | 318 | > [!NOTE] |
323 | | -> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-ver15&preserve-view=true#syntax). |
324 | | -
|
| 319 | +> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. To view the features of SQL Server 2019 and later, see [CREATE EXTERNAL DATA SOURCE](create-external-data-source-transact-sql.md?view=sql-server-ver15&preserve-view=true#syntax). |
325 | 320 |
|
326 | 321 | ::: moniker-end |
327 | 322 |
|
328 | 323 | ::: moniker range="=sql-server-2017||=sql-server-linux-2017" |
329 | 324 |
|
| 325 | +## <a id="syntax"></a> Syntax for SQL Server 2017 |
| 326 | + |
| 327 | +For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
| 328 | + |
330 | 329 | ```syntaxsql |
331 | 330 | CREATE EXTERNAL DATA SOURCE <data_source_name> |
332 | 331 | WITH |
@@ -591,22 +590,22 @@ To see this example in use, see the [BULK INSERT][bulk_insert_example] example. |
591 | 590 |
|
592 | 591 | ::: moniker-end |
593 | 592 |
|
594 | | -::: moniker range="=sql-server-ver15" |
| 593 | +::: moniker range=">=sql-server-ver15" |
595 | 594 |
|
596 | 595 | ## Overview: SQL Server |
597 | | -[!INCLUDE[SQL2016+](../../includes/applies-to-version/sqlserver2016.md)] |
| 596 | +[!INCLUDE[SQL2019](../../includes/applies-to-version/sqlserver2019.md)] and later |
598 | 597 |
|
599 | 598 | Creates an external data source for PolyBase queries. External data sources are used to establish connectivity and support these primary use cases: |
600 | 599 |
|
601 | 600 | - Data virtualization and data load using [PolyBase][intro_pb] |
602 | 601 | - Bulk load operations using `BULK INSERT` or `OPENROWSET` |
603 | 602 |
|
604 | | -For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
| 603 | +> [!NOTE] |
| 604 | +> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. This content applies to SQL Server 2019 and later. |
605 | 605 |
|
606 | | -## <a id="syntax"></a> Syntax for SQL Server 2019 |
| 606 | +## <a id="syntax"></a> Syntax for SQL Server 2019 and later |
607 | 607 |
|
608 | | -> [!NOTE] |
609 | | -> This syntax varies between versions of SQL Server. Use the version selector dropdown to choose the appropriate version of SQL Server. |
| 608 | +For more information about the syntax conventions, see [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md). |
610 | 609 |
|
611 | 610 | ```syntaxsql |
612 | 611 | CREATE EXTERNAL DATA SOURCE <data_source_name> |
|
0 commit comments