The first step to Managing a Table's Columns is to Add or Edit a Table. See the Table Tutorials to learn more.
| Standard: | |
| <prefix><name> |
Column defaults are specified with the prefix and supplied by the Naming Convention.
For example: 'strColumnName' will give you a VarChar Column named 'strColumnName' with a Length of 50.
This could be 'intValue', 'strValue', 'dtmValue', or any other prefix from the Naming Convention
|
To specify a Column's length: | |
| <prefix><name>(length) |
length is a posative Integer (1-99999) specifying the number of character the Column can hold.
For example: 'strColumnName(25)' will give you a VarChar Column named 'strColumnName' that can hold a maximum of 25 characters.
* If you leave off '(length)', the default length for the specified Naming Convention prefix will be used.
|
To specify Precision / Scale: | |
| <prefix><name>(scale,precision) |
precision is a posative Integer (1-99) that is the total number of significant digits to the left and right of the decimal.
scale is a posative integer (0-99) that is the total number of sifnificant digits to the right of the decimal. For example: 'sngValue(8, 3)' will give you a Float Column named 'sngValue' that can have eight digits and up to 3 of them can be to the right of the decimal.
* If you leave off '(scale,precision)', the default precision & scale for the specified Naming Convention prefix will be used.
** A value of zero for scale lets SQL Server decide how many digits to place to the right of the decimal. |
To specify an identity Column: | |
| <prefix><name>[seed,increment] |
seed is a posative Integer (1-9999) specifying the Identity Column auto-numbering start point. increment is a posative Integer (1-9999) specifying the Identity Column auto-number increase. For example: 'intTableID[100,2]' will give you an Identity Column named 'intTableID' that starts auto-numbering at 100 and will increase by 2 with every insert.
* An Identity Column must be derived from the BigInt, Decimal, Integer, Numeric, SmallInt, or TinyInt data types.
|
To specify a Datatype using a prefix and then remove the prefix: | |
| <prefix>.<name> | For example: 'int.ID' will give you an Integer Column named 'ID'. |
button to validate your syntax. (Not Required)