Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How to: Modify Column Length (Visual Database Tools)

Updated: 12 December 2006

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.

  1. In Object Explorer, right-click the table with columns for which you want to modify the length and click Design (Modify in SP1 or earlier).

    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.

ms188326.note(en-US,SQL.90).gifNote:
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.