# Using metadata to read a database and displaying the results

You can read and manage databases in Talend Studio, allowing you to integrate them into your data management workflows.

## Before you begin

* This tutorial makes use of a database. If you do not have a database, download and extract the following file: [customers_unordered.zip](https://help.qlik.com/talend/en-US/creating-using-metadata-talend-studio/8.0/Content/Resources/attachments/customers_unordered.zip). You must import the database into a compatible program.

* You must have created a metadata definition from a database (see [Creating a metadata definition from a database](https://help.qlik.com/talend/en-US/creating-using-metadata-talend-studio/8.0/Creating%20a%20metadata%20definition%20from%20a%20databasehttps://help.talend.com/en-US/creating-using-metadata-talend-studio/8.0/creating-metadata-database)).

## Procedure

1. In the Repository, expand Metadata &gt; Db Connections.
2. Drag-and-drop a database metadata on the Designer.
   1. Select a tDBInput component.

      The component inherits the database schema.
3. In the Designer, add a tLogRow component.
4. Right-click the tDBInput component.
   1. Select Row &gt; Main.
   2. Click on the tLogRow component to link the two.

      ![](https://help.qlik.com/talend/en-US/creating-using-metadata-talend-studio/Resources/images/row_main2.gif)
5. Optional: In the tLogRow component, select the Table Mode.
6. In the Run view, click Run.

## Results

The tDBInput component, configured through metadata, reads your database, and the tLogRow component displays its content on the console.