How to retrieve schemas from a Db Connection Metadata Define Repository Schemas for a database table.

This tutorial shows you how the "Schema Table" wizard can help you define schema of a database table, stored in the Repository.

You can create several Schemas to define each table.

Release Notes:
To select specific tables from a Db Connection, we can use patterns such as "type" and "name" which are compared to all the tables in a database, and only matching tables are parsed through.

Download it!

Do you want to practice?

Download tutorialProject.zip includes all the jobs needed to carry out this tutorial. Please, download it!

You can also:
Send it!

Share it!
Next Step: Refer to [How to create a File Delimited Metadata] to learn how to create File Schemas.

 


  

To start this tutorial, you have to complete the "How to create a Db Connection Metadata" tutorial first.

Next
  

Create a Table schema metadata


In the Repository on the left of the Talend Open Studio main screen:

Expand the Metadata > RemoteDBMS node.

Right-click on RemoteDBMS.

In the menu, click Retrieve Schema to open the Schema wizard.
Next

In the Schema wizard:

In the Select Filter Conditions area, select Use the Name Filter or Use the Sql Filter depending on the type of filter you want to use.

In the Select Types area, select the type of item you are looking for: table, view and/or synonym.

In the Set the Name Filter or Set the Sql Filter areas, set the filter you want to use.

For this tutorial, left the default settings.

Click Next.
Next

In the Select Schema to create area, enter the name of the table you are looking for in the Name Filter field and check the corresponding box in the Name list, or simply check the table in the list.

Here, we select the customers, states and subscribers tables.

Click Next.
Next

In the Schema area on the left of the wizard, select the table.

Once selected, you can modify its schema.

Next

The name of the table displays in the Name field at the top of the wizard.

The Schema area at the bottom of the wizard displays the structure of the table.

You can modify it via the toolbar below the table.

Next

In the Schema area, select columns you want to delete and click [x].

Delete id2, Sum1, Sum2.

Rename the columns. Click the Column you want to rename and enter the new name.

Change the Type of data in the list. The corresponding DB Type field will automatically be modified.

Check Key and Nullable boxes if necessary.

Modify the Length of your columns.

Click Finish.

Next

In the Repository on the left:

The new schemas are displayed in the Metadata > Db Connections > RemoteDBMS > Table schemas node.

  Next Step: Refer to [How to create a File Delimited Metadata] to learn how to create File Schemas.

 

    Download it!     Send it!     Share it!

Do you want to practice?

Download tutorialProject.zip includes all the jobs needed to carry out this tutorial. Please, download it!

Friends / colleagues may be interested in this tutorial? Send it to them!

You liked this tutorial ? Support it!

[ top ]