Previous Topic: Define SAS Table PropertiesNext Topic: Specify Data Compression Information for a Table


Define SQL Server Table Properties

Use the SQL Server Table Editor to define table properties. This procedure assumes you are working in a physical model, with SQL Server defined as the target server.

To define properties for an SQL Server table:

  1. Click Tables on the Model menu.

    The SQL Server Table Editor opens.

  2. Select the table in the Navigation Grid that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create a new table. Use the Enter filter text box to filter a very large list of tables to quickly locate the one that you want to define.

    Physical Name

    Specifies the physical name of the table. Change the physical name of the table in this field.

    Schema

    Specifies the schema that owns the table.

    SQL Server Table Type

    Specifies the type of SQL Server table. For more information on table properties of each type of table, refer to Microsoft SQL Server documentation.

    • Disk Based
    • Memory Optimized (Available in SQL Server 2014 onward)
      Note: Under the SQL Server Database FileGroup Editor, ensure that the Contains Memory Optimized Data check box is selected for the associated file group.
    • File (Available in SQL Server 2012 onward)
      Note: Under the SQL Server Database FileGroup Editor, ensure that the Contains Filestream check box is selected for the associated file group.
    Durability

    Specifies the type of durability of a table.

    Physical Only

    Specifies whether the table is suppressed from a logical model and appears in a physical model only.

    Generate As Type

    Specifies that the table is of the user-defined type. You can use a user-defined table type to declare table-valued parameters for stored procedures or functions, or to declare table variables that you want to use in a batch or in the body of a stored procedure or function.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  3. Click the General tab and set the required properties depending upon the SQL Server Table Type that you select.
    Physical Name

    Detects the Physical Name of the table. Set the inheritance and override options here.

    Storage Locations

    Set the storage settings for the selected table's Filegroup, Text Image, Filestream Filegroup, and Filestream partition Scheme.

    Change Tracking Options

    Set change tracking options for a table and it's columns.

    Table Options

    Set the Lock Escalation Type and select whether you want to use the Vardecimal storage format.

    File Table Options

    In case of a File table, set the Filetable Directory, Filetable Collate Filename, Filetable Primary Key Constraint Name, Filetable Streamid Unique Constraint Name, and Filetable Fullpath Unique Constraint Name.

    Temporal Options

    Select whether you want to define a table as a Temporal table. Set the Period Start Column, Period End Column, History Table Name, and whether you want to use Data Consistency Check. Available SQL Server 2016 onward.

  4. Click the Volumetrics tab and work with the following options:
    Initial Row Count

    Defines row count for the table. Enter a value in the field.

    Max Rows

    Defines row sizing for the table. Enter a value in the field.

    Growth By Month

    Defines growth increments for the table. Enter a value in the field.

  5. Work with the other tabs in the editor to access additional design features, for example:
  6. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  7. (Optional) Click the Where Used tab to view where the object is used within the model.
  8. (Optional) Click the UDP tab to work with user-defined properties for the object.
  9. (Optional) Click the Notes tab to view and edit user notes.
  10. (Optional) Click the Extended Notes tab to view or edit user notes.
  11. Click Close.

    The table is defined and the SQL Server Table Editor closes.

For more information on table properties, refer to Microsoft SQL Server documentation.