MS SQL Maestro online Help
|Prev||Return to chapter overview||Next|
Table columns are created and edited in MS SQL Maestro within the Field Editor.
To add a new table column, you should either:
Table fields are edited within the Field Editor dialog window. In order to open the dialog you should either
You can change the name of the field using the Rename Field dialog. To open the dialog you should either
To drop the table field:
and confirm dropping in the dialog window.
Specify the Field Name and specify the Field Data Type by selecting it from the drop-down list.
Note: the name of the object must be unique among all the object names in the table. You can use any identifier that is allowed by Microsoft SQL server.
XML schema collection
Used only in case xml is selected as Type. Applies only to the XML data type for associating an XML schema collection with the type. Before using you are to create the schema in the database first.
See also: XML schema collection
Denotes that each instance of the xml data type can contain multiple top-level elements (for Content) or only one top-level element (for Document).
Use the Size edit box to define the length of the field value for integer, float, char and other data types and use Precision to define the precision of the field value, e.g. for float data type.
The value applies only to the varchar, nvarchar, and varbinary data types for storing 2^31 bytes of character and binary data, and 2^30 bytes of Unicode data.
Forbids the NULL values for the field.
Includes the field into the unique key (index).
With this option checked the field becomes the only field with a primary key. If you check this field, you will not be able to set this attribute for any other field in the table. Hence if you want to create a compound primary key, do not check this field but create a primary key through the Indexes tab of Table Editor or the appropriate step of Create Table Wizard.
Indicates that the new column is a row GUID column.
To set the default value for the field use the Default value box. This value is always inserted to the table in this field when the field value is not specified in the insert query.
Represents an expression that defines the value of a computed column. A computed column is a virtual column that is not physically stored in the table unless the column is checked Persisted.
Binds the rule to a column data type. The rule is to be created in the database beforehand.
See also: Rules
The Comment box allows you to set optional text describing the field.
For field identity properties see Setting field identity.