Explains how to load your data into an RDBMS.
After completing Filter Records with Missing Postal Codes, you are ready to take all records exiting the Filter rows step where the POSTALCODE was not null (the true condition), and load them into a database table.
- Under the Design tab, expand the contents of the Output node.
- Click and drag a Table Output step into your transformation. Create a hop between the Filter Missing Zips and Table Output steps. In the dialog that appears, select Result is TRUE.
- Double-click the Table Output step to open its edit properties dialog box.
- Rename your Table Output Step to Write to Database.
- Click New next to the Connection field. You must create a connection to the database. The Database Connection dialog box appears.
- Provide the settings for connecting to the database.
Connection Name Sample Data Connection Type: H2 Host Name localhost Database Name sampledata Port Number 9092 User Name sa Password Leave this blank. No password required to connect to this database.
- Click Test to make sure your entries are correct. A success message appears. Click OK. Note: If you get an error when testing your connection, ensure that you have provided the correct settings information as described in the table and that the sample database is running. See Starting the Data Integration Server for information about how to start the Data Integration Servers.
- Click OK, to exit the Database Connections window.
- Type SALES_DATA in the Target Table text field.
- Since this table does not exist in the target database, you will need use the software to generate the Data Definition Language (DDL) to create the table and execute it. DDLs are the SQL commands that define the different structures in a database such as CREATE TABLE.
- In the Table Output window, enable the Truncate Table property.
- Click the SQL button at the bottom of the Table output dialog box to generate the DDL for creating your target table.
- The Simple SQL editor window appears with the SQL statements needed to create the table.
- Click Execute to execute the SQL statement.
- The Results of the SQL statements window appears. Examine the results, then click OK to close the Results of the SQL statements window.
- Click Close in the Simple SQL editor window to close it.
- Click OK to close the Table output window.
- Save your transformation.