Share via


How to: Modify Column Length

When you select a data type, the column length is automatically defined. You can reset the Length property for a column with a character data type, such as binary, char, nchar, nvarchar, varbinary, or varchar, if you want to increase or decrease the length of acceptable values in that column. For columns with numeric data types, the length is set by the Precision property.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To modify the length of a columns data type

  1. In Server Explorer, right-click the table with columns for which you want to change the length and click Open Table Definition.

    The table opens in Table Designer.

  2. In the Column Properties tab, type a length for the column's data type in the Length field.

Note

You can edit the Length property for character data types only.

The new length is assigned to the column in the Table Designer after you click outside the grid cell or use the TAB key to move to another grid cell. It takes effect in the database when you save your changes in Table Designer.

See Also

Reference

Column Properties

Other Resources

Working with Columns