In this article we will show you, How to create target table in Informatica and use it as the destination / target table for the transformed data with example. For example, If we don’t have the table structure that matches our requirement then this option can be very helpful,
How to Create Target Table in Informatica
Before we start Create Target Table in Informatica, First connect to Informatica repository service with your Admin credentials and then Navigate to Target Designer. Please refer Target Designer in Informatica article to understand the Target Designer screen. From the below screenshot you can observe that, we are in the Target Designer.
TIP: Target Menu in the Menu bar will be available only when you are in Target Designer section otherwise, it will be hidden.
Next, Please navigate to Targets menu in Menu Bar. From the following screenshot you can observe the list of available targets inside the Informatica PowerCenter Designer. In this example our task is to create target table from scratch. So, we are selecting the Create option as show below.
Once you select the Create option, a new window called Create Target table will be displayed as shown below:
- Enter a new name for this table: Please provide the unique name for this new table. We assigned Target_Multicast as the new name for this table
- Select a database type: Please select the require database type from the list of available databases. Here we are selecting the Microsoft SQL Server
Once you are done filling the details, Please click on the Create button to create new empty table in our PowerCenter Target Designer.
From the below screenshot you can observe that, We successfully created new empty table in our Target Designer.
In order to add new columns, we can edit the table definition by Right click on the table definition and selecting the Edit.. option from the context menu.
Once you select the Edit.. option, a new window called Edit tables will be opened as shown below. Within the Table tab we can rename the table name by clicking the Rename button. Please change as per you requirements
In order to alter or change the existing table, we have to navigate to Columns Tab. Here we want to add new columns so, Please select the first button (before scissors symbol) as shown below. This will open the empty row to add Column Name, Data Type, Precision (if required), Scale (if required). If it is primary key then change the Key type to primary and check mark the Not Null option (if your column doesn’t allow null values)
From the below screenshot you can observe that, we added six columns with three NVarchar data types and three Numeric data types. Once you added the required columns, Click OK to close the Edit tables window
From the below screenshot you can see our newly created target table in Informatica. And also the table definition (Column Names and appropriate data types) inside our work space.
NOTE: The target tables we created in PowerCenter target designer will exist only in target designer. If you want to add this table definition to SQL Server, we have to following the steps we specified in Create Informatica Target table using Source Definition article (Starting from Step 1 to Step 8)
Thank You for Visiting Our Blog