# Writing to a Database from a Task

The Task provides a dedicated block for inserting rows into a table.

1. From the Data node of the Toolbox, drag and drop a Database Writer block onto the Task.

2. Configure which database table to write to by double-clicking the block to open the Database Writer Configuration dialog, and select the database table.

3. Once the table has been selected, the block will generate input pins for each of the data columns in the table. The input pins can be linked to other blocks and tags, and every time the block executes, the values of all the input pins will be added into a new row in the table.