Ready to get started?

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

Download Now

DBArtisan でCSV Data に連携

DBArtisan のウィザードを使って、CSV data をデータソースとして連携利用。

CData ODBC Driver for CSV は、DBArtisan などのデータベースツールとCSV data を連携し、RDB のような感覚でCSV データを扱えます。 本記事では、DBArtisan 上でCSV データソースを作成する方法とクエリの実行方法を説明します。

DBArtisan Project にCSV Data を連携する

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.