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: docs/t-sql/statements/create-external-file-format-transact-sql.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ Optional. Only for delimited text data types.
193
193
194
194
Only serverless SQL pools in Azure Synapse Analytics support `PARSER_VERSION`.
195
195
196
-
Serverless SQL pools do not support the `DATE_FORMAT` option.
196
+
Serverless SQL pools don't support the `DATE_FORMAT` option.
197
197
198
198
### DATA_COMPRESSION = *data_compression_method*
199
199
@@ -261,7 +261,10 @@ Examples:
261
261
262
262
`STRING_DELIMITER = *string_delimiter*`
263
263
264
-
Specifies the field terminator for data of type string in the text-delimited file. The string delimiter is one or more characters in length and is enclosed with single quotes. The default is the empty string "". For guaranteed support, we recommend using one or more ASCII characters.
264
+
Specifies a character that encloses the textual values in the text-delimited file. The default is the empty string "". The value of `STRING_DELIMITER` is functionally equivalent to the [FIELDQUOTE](../functions/openrowset-transact-sql.md#fieldquote--field_quote) option in the `OPENROWSET` function.
265
+
266
+
> [!NOTE]
267
+
> Hadoop tables in Synapse dedicated SQL pools enable you to specify one or more characters in STRING_DELIMITER. In serverless SQL pool, you can use only one character.
265
268
266
269
Examples:
267
270
@@ -273,7 +276,7 @@ Examples:
273
276
274
277
-`STRING_DELIMITER = ꞌ,ꞌ`
275
278
276
-
-`STRING_DELIMITER = '0x7E0x7E'` (Two tildes, for example, `~~`)
279
+
-`STRING_DELIMITER = '0x7E0x7E'` (Two tildes, for example, `~~`) - supported in dedicated SQL pool.
277
280
278
281
#### FIRST_ROW = *first_row_int*
279
282
@@ -303,7 +306,7 @@ When DATE_FORMAT isn't specified or is the empty string, PolyBase uses the follo
303
306
-**time**: `'HH:mm:ss'`
304
307
305
308
> [!IMPORTANT]
306
-
> Specifying custom `DATE_FORMAT`will override all default type formats. This means that you will need to have the same date formats in all datetime, date, and time cells in your files. With the overridden `DATE_FORMAT` you cannot have date and time values in different format.
309
+
> Specifying custom `DATE_FORMAT`overrides all default type formats. This means that you will need to have the same date formats in all datetime, date, and time cells in your files. With the overridden `DATE_FORMAT`, you cannot have date and time values in different format.
307
310
308
311
**Example date formats** are in the following table:
309
312
@@ -317,16 +320,16 @@ Notes about the table:
317
320
318
321
|Date Type|Example|Description|
319
322
|---------------|-------------|-----------------|
320
-
|**datetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fff`|In addition to year, month and day, this date format includes 00-24 hours, 00-59 minutes, 00-59 seconds, and 3 digits for milliseconds.|
321
-
|**datetime**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffftt`|In addition to year, month and day, this date format includes 00-12 hours, 00-59 minutes, 00-59 seconds, 3 digits for milliseconds, and AM, am, PM, or pm. |
323
+
|**datetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fff`|In addition to year, month and day, this date format includes 00-24 hours, 00-59 minutes, 00-59 seconds, and three digits for milliseconds.|
324
+
|**datetime**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffftt`|In addition to year, month and day, this date format includes 00-12 hours, 00-59 minutes, 00-59 seconds, three digits for milliseconds, and `AM`, `am`, `PM`, or `pm`. |
322
325
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes.|
323
-
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd hh:mmtt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, no seconds, and AM, am, PM, or pm.|
326
+
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd hh:mmtt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, no seconds, and `AM`, `am`, `PM`, or `pm`.|
324
327
|**date**|DATE_FORMAT = `yyyy-MM-dd`|Year, month, and day. No time element is included.|
325
328
|**date**|DATE_FORMAT = `yyyy-MMM-dd`|Year, month, and day. When month is specified with `MMM`, the input value is one or the strings, `Jan`, `Feb`, `Mar`, `Apr`, `May`, `Jun`, `Jul`, `Aug`, `Sep`, `Oct`, `Nov`, or `Dec`.|
326
-
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and 7 digits for milliseconds.|
327
-
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, 7 digits for milliseconds, and AM, am, PM, or pm.|
329
+
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and seven digits for milliseconds.|
330
+
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, seven digits for milliseconds, and `AM`, `am`, `PM`, or `pm`.|
328
331
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff zzz`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and 7 digits for milliseconds, and the timezone offset which you put in the input file as `{+|-}HH:ss`. For example, since Los Angeles time without daylight savings is 8 hours behind UTC, a value of -08:00 in the input file specifies the timezone for Los Angeles.|
329
-
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt zzz`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, 7 digits for milliseconds, (AM, am, PM, or pm), and the timezone offset. See the description in the previous row.|
332
+
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt zzz`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, seven digits for milliseconds, (`AM`, `am`, `PM`, or `pm`), and the timezone offset. See the description in the previous row.|
330
333
|**time**|DATE_FORMAT = `HH:mm:ss`|There is no date value, only 00-23 hours, 00-59 minutes, and 00-59 seconds.|
0 commit comments