Defining a warehouse source table

Use the Define Warehouse Source Table notebook to record the description of a new table that you want to include in a specific warehouse source. From this notebook, you can:

The Data Warehouse Center does not physically create warehouse primary or warehouse foreign keys in the tables that it defines as source tables. Source tables may or may not have had keys created for them prior to the tables being defined as warehouse source tables. You can define warehouse primary keys and warehouse foreign keys to document logical or physical relationships in the data.

../byb.gif Authorities and privileges

To define a warehouse source table:

  1. Open the Warehouse Source Table notebook.

  2. In the Table schema field, specify a schema for the table that you are creating.

  3. In the Table name field, type a fully qualified name for the table that you are creating. The name can contain up to 128 characters and be an ordinary or delimited identifier.

    Table names can be case sensitive, or have other restrictions, for some warehouse source types. See the documentation for your warehouse source type for information about naming conventions.

  4. Optional: In the Table space field, specify the table space in which to create the table.

  5. Optional: In the Index table space field, specify the table space in which to create any indexes on the table.

  6. Optional: In the Description field, type a short description of the table.

  7. Optional: In the Business name field, type a name for the table that end users will easily recognize.

  8. On the Columns page, right-click in the whitespace of the table and select Add, or right-click a row and click Insert. If you click Add, a blank row is added below all other rows. If you click Insert, a blank row is inserted above the selected row.

  9. Type the name of the column in the Column name field.

    Column names can be case sensitive for some data source types. The Data Warehouse Center can store column names that are up to 128 characters in length. See the documentation for your data source type for information about naming conventions and restrictions.

  10. In the Data type field, specify a data type for the column.

  11. If you specify a data type that requires a byte count, specify the length in the Length field.

    For example, you must specify a length for CHAR data types.

  12. If you specify the DECIMAL data type, specify the precision in the Precision field.

    Precision refers to the total number of digits, which can range from 1 to 131.

  13. If you specify the DECIMAL data type, specify the scale in the Scale field.

    Scale refers to the number of digits to the right of the decimal point, which can range from 0 to the precision of the number.

  14. To ensure that the code page is translated properly, select the Is Text check box if the CHAR or VARCHAR field contains text.

  15. Select the Nullable box if null (nonexistent or unknown) values are allowed in the table.

  16. Optional: Select Replication before to capture the before-image of the column if the source is a replication source.

  17. Optional: Select Replication after if the column is defined for change capture.

  18. Optional: In the Description field, type a description for the column.

  19. Optional: Click Move up to move the selected column up one position in the list or click Move down to move the selected column down one position in the list.

  20. Optional: To remove a column from the table, right-click the row containing the column and select Remove.

  21. Optional: Define a warehouse primary key for the table.

  22. Optional: Define warehouse foreign keys for the table.

  23. Click OK to save your changes and close the notebook.

Related information

Warehouse Source notebook

Importing source tables into a warehouse source

Table page

Columns page

Warehouse primary key page

Warehouse foreign keys page

Warehouse primary key

Warehouse foreign key

Warehouse source