CData ADO.NET Provider for CSV 2019 - Online Help
Questions / Feedback?

FMT

CData ADO.NET Provider for CSV 2019 - Build 19.0.7354

The format to be used to parse all text files.

Data Type

string

Default Value

"CsvDelimited"

Remarks

When this connection property is set, the provider will parse all text files in the URI according to the specified file format. The text file format can also be specified in ExtendedProperties, as with the Microsoft Jet OLE DB 4.0 ExtendedProperties for text files. The format specified in ExtendedProperties overrides the format set as a stand-alone connection property. The Format property in Schema.ini overrides the file format set in the connection string.

The FMT can be set to one of the following values:

  • CsvDelimited: The provider separates each field by commas.
  • TabDelimited: The provider separates each field by tabs.
  • FixedLength: The provider counts a specified number of characters to separate each field. If this format is specified, the width of each column must be defined in Schema.ini.

The following connection string parses all text files in the DataSource folder as tab-delimited values with headers:

InitiateOAuth=GETANDREFRESH;DataSource=C:\mytsv;FMT=TabDelimited

If the property is set to anything other than the values specified above, the first character of the specified input will be read as the delimiter, for example:

InitiateOAuth=GETANDREFRESH;DataSource=C:\mypipdelimitedfile;FMT=|

 
 
Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0