Ready to get started?

Learn more about the CData ODBC Driver for CSV or download a free trial:

Download Now

Connect to CSV Data in DBArtisan

Use wizards in DBArtisan to configure CSV data as a data source.

The CData ODBC Driver for CSV seamlessly integrates CSV data into database management tools like DBArtisan by enabling you to access CSV data as a database. This article shows how to create an data source for CSV in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.

Integrate CSV Data into DBArtisan Projects

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

The DataSource property must be set to a valid local folder name.

Also, specify the IncludeFiles property to work with text files having extensions that differ from .csv, .tab, or .txt. Specify multiple file extensions in a comma-separated list. You can also set Extended Properties compatible with the Microsoft Jet OLE DB 4.0 driver. Alternatively, you can provide the format of text files in a Schema.ini file.

Set UseRowNumbers to true if you are deleting or updating in CSV. This will create a new column with the name RowNumber which will be used as key for that table.

You can then follow the steps below to register CSV data as a database instance in your project:

  1. In DBArtisan, click Data Source -> Register Datasource.
  2. Select Generic ODBC.
  3. Enter a name for the data source and select the DSN.
  4. Finish the wizard to connect to CSV data. CSV entities are displayed in the Datasource Explorer.

You can now work with CSV data as you work with any other database. See the driver help documentation for more information on the queries supported by the CSV API.