The following node is available in the Open Source KNIME predictive analytics and data mining platform version 2.7.1. Discover over 1000 other nodes, as well as enterprise functionality at http://knime.com.

Database Writer

Establishes and opens a database access connection to which the entire input table is written to.
Make sure you have your vendor-specific database driver registered in the KNIME preference page (section Database Driver). By default, the sun.jdbc.odbc.JdbcOdbcDriver (Windows and Linux) is only available.

Dialog Options

Settings
Database Driver
Enter the database driver here; it is a Java class (including the package path), for example: sun.jdbc.odbc.JdbcOdbcDriver Additional driver can be registered via KNIME's preference page (Database Driver).
Database URL
Enter the database name here, for example: jdbc:odbc:database_name or jdbc:mysql://host:port/database_name
Workflow Credentials
If checked, the credentials (user and password) are used as defined on the workflow. The credential name links to the specified user and password. Those can be replaced or edit using the 'Workflow Credentials' menu available in the workflow context menu.
User Name
Your log-in user name for the database.
Password
Your log-in password for the database. Note, the password is de- and encrypted before handling it internally and is not stored inside the settings.
Table Name
Enter the name of the table to which data should be written. Note, if this table exists, the table is dropped before writing.
Append Data
Check this to append the input data to an existing table with the same data structure. If the table does not exist a new one will be created. Note, if this box is unchecked an existing table is dropped before execution of this node.
SQL Types
Types
Enter the SQL types here to write integer-, double-, or string-valued columns to the database. By default integers are defined as type "integer", doubles as "numeric(10,30)", and all other columns, including strings are written as "varchar(255)". Some databases such as MS Access and Firebird do not allow this numeric precision, therefore you must select "numeric" as the SQL type. If your database allows strings longer than 255 chars, you can change this value in order to write long strings such as SLNs or Smiles.
Advanced
Batch Size
Enter a number greater than 0 for the number of rows written in one batch job; 1 means on row at a time.

Ports

Input Ports
0 Table with data to write into database
This node is contained in KNIME Base Nodes provided by KNIME GmbH, Konstanz, Germany.