Data Source Examples
The following are some example data sources illustrative for various file or database kinds and connection methods. Use this syntax to create a [datasource] section in a client or server configuration .ini file. Note that there may be more than one way to connect to the same database. For example, on Windows, you can connect to a MySQL database using any of the following connections methods: ADO.NET, JDBC, or ODBC.
Access (ADO)
[datasource:access_data] |
CSV
[datasource:csv_data] has-header-row=false |
IBM DB2 (JDBC)
[datasource:db2_data] |
IBM DB2 for i (JDBC)
[datasource:db2_i_data] connection = jdbc:as400://127.0.0.1 class = com.ibm.as400.access.AS400JDBCDriver user = DBUSER pass = 75gfljh9 table = "DBUSER"."PRODUCTS" |
MariaDB (ODBC)
[datasource:mariadb_data] |
MySQL (ODBC)
[datasource:mysql_data] |
Oracle (JDBC)
[datasource:oracle_data] connection = jdbc:oracle:thin:@ora12c:1521:orcl12c class = oracle.jdbc.driver.OracleDriver user = dbuser pass = 75gfljh9 table = "DBUSER"."PRODUCTS" |
PostgreSQL (Native)
[datasource:postgresql_data] |
SQLite (Native)
[datasource:sqlite_data] |
SQL Server (ADO.NET)
[datasource:sqlserver_data] connection = Data Source=SQLSERV16;Initial Catalog=NANONULL;MultipleActiveResultSets=True;Password=7hiu57;Persist Security Info=True;User ID=altova assembly = System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 class = System.Data.SqlClient table = [NANONULL].[dbo].[PRODUCTS] |
Teradata (JDBC)
[datasource:teradata_data] |