Skip to content

Commit 1388db4

Browse files
authored
fixing list formatting
Co-authored-by: Diana Richards <[email protected]>
1 parent 2012453 commit 1388db4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

learn-pr/sqlserver/sql-server-2022-data-virtualization/includes/6-create-external-table-as-select.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ The input can be a table running locally on your SQL Server instance, a network
6363

6464
To better understand CETAS, you can break down the overall T-SQL syntax into three parts:
6565

66-
1. **`CREATE EXTERNAL TABLE` clause** — This is the first part of the statement, where you declare the external table name and specify the destination location, file name, and file format using the `WITH` clause (which includes `LOCATION`, `DATA_SOURCE`, and `FILE_FORMAT` options).
67-
1. **Optional reject parameters** — Between the `WITH` clause and the `AS` keyword, you can include optional parameters to filter or reject data that you don't want to export.
68-
1. **`SELECT` statement** — The final part of the statement is a standard `SELECT` query that defines what data to export. This query determines the column definitions, data types, and the source of the exported data.
66+
- **`CREATE EXTERNAL TABLE` clause** — This is the first part of the statement, where you declare the external table name and specify the destination location, file name, and file format using the `WITH` clause (which includes `LOCATION`, `DATA_SOURCE`, and `FILE_FORMAT` options).
67+
- **Optional reject parameters** — Between the `WITH` clause and the `AS` keyword, you can include optional parameters to filter or reject data that you don't want to export.
68+
- **`SELECT` statement** — The final part of the statement is a standard `SELECT` query that defines what data to export. This query determines the column definitions, data types, and the source of the exported data.
6969

7070
The CETAS syntax follows a logical flow: first you define *where* and *how* to export, then you define *what* to export. This structure allows CETAS to be combined with any `SELECT` statement to query data outside SQL Server, within SQL Server, or from any other supported database. SQL Server 2025 automatically creates the file name and splits the results in multiple files for optimization. For example, a table exported as a Parquet can generate several files, depending on the exported data size.
7171

0 commit comments

Comments
 (0)