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:
- Click Tables on the Model menu.
The SQL Server Table Editor opens.
- Select the table in the Navigation Grid that you want to define and work with the following options:
Note: Click New
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.
- 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.
- 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.
- Work with the other tabs in the editor to access additional design features, for example:
- Click the DataCompression tab to define table data compression.
- Specify validation rules in the Validation tab.
- Preview the forward engineering script for a table in the SQL tab.
- Work with style sheets to format the font used in the display of the table in the Styletab.
- Specify the icon style to use for the table in the Icon tab.
- Specify the order of DDL generation in the Object Creation Order tab.
- (Optional) Click the Commenttab and enter any comments that you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDPtab to work with user-defined properties for the object.
- (Optional) Click the Notestab to view and edit user notes.
- (Optional) Click the Extended Notes tab to view or edit user notes.
- 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.
Copyright © 2018 erwin, Inc.
All rights reserved.
|
|