Skip to content

Commit d1da48f

Browse files
committed
Add format-specific options summary for OPENROWSET in documentation
1 parent aac97ae commit d1da48f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/t-sql/functions/openrowset-bulk-transact-sql.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@ OPENROWSET( BULK 'data_file_path',
128128

129129
::: moniker-end
130130

131+
Some `OPENROWSET` options are format‑specific, while others are universal. For example, row and field delimiters are meaningful only for delimited text (CSV/TSV), whereas options like DATA_SOURCE and MAXERRORS apply to all formats. The table below summarizes which options are supported for the most common formats.
132+
133+
| Options | CSV(1.0) | CSV(2.0) | PARQUET | JSONL |
134+
|---|---|---|---|---|
135+
| DATA_SOURCE, ROWS_PER_BATCH, MAXERRORS | Supported | Supported | Supported | Supported |
136+
| ERRORFILE, ERRORFILE_DATA_SOURCE, FORMATFILE, FORMATFILE_DATA_SOURCE | Supported | Supported | Not supported | Supported |
137+
| CODEPAGE, DATAFILETYPE | Supported | Supported | Not supported | Supported |
138+
| FIRSTROW | Supported | Supported | Not supported | Supported |
139+
| ROWTERMINATOR, FIELDTERMINATOR, FIELDQUOTE, ESCAPECHAR | Supported | Supported | Not supported | Not supported |
140+
| PARSER_VERSION | Supported | Supported | Not supported | Not supported |
141+
| LASTROW | Supported | Not supported | Not supported | Not supported |
142+
| HEADER_ROW | Not supported | Supported | Not supported | Not supported |
143+
| SINGLE_BLOB, SINGLE_CLOB, SINGLE_NCLOB | Not supported | Not supported | Not supported | Not supported |
144+
131145
## Arguments
132146

133147
The arguments of the `BULK` option allow for significant control over where to start and end reading data, how to deal with errors, and how data is interpreted. For example, you can specify that the data file is read as a single-row, single-column rowset of type **varbinary**, **varchar**, or **nvarchar**. The default behavior is described in the argument descriptions that follow.

0 commit comments

Comments
 (0)