
To prevent null values, select the Req'd check box. For example, you could type decimal(8,2) or char(30). To change the data type for a column, click the column's Data Type field, and then select a data type from the list or type it into the list. In the Database Properties window, under Categories, click Columns.Ĭlick in the first empty Physical name cell and type a name. Add a column to a tableĪfter you create a table, you need to add columns and define column properties, such as data type and primary keys. To change the defaults, on the Database menu, point to Options, click Modeling, and go to the Logical Misc tab. Tip: When you drag an entity shape onto the diagram is has a default name. Under Categories click Indexes, Triggers, Check, or Extended to create these optional elements. Select PK (primary key) for columns that uniquely identify each row in the database table. Select Req’d for columns that can't have null values. Under Categories, click Columns and type a name and choose a data type.

Under Categories, click Definition and type a name for the table. Open the database model diagram that you want to work with.įrom either the Entity Relationship or Object Relational stencil, drag an Entity shape onto the drawing.ĭouble-click the shape to open the Database Properties window. Create a table in a database model diagram

Visio for Enterprise Architects is included in MSDN Premium Subscription, which is available with Visual Studio Professional and Visual Studio Team System role-based editions. Note: You can find the full suite of database modeling features, including both reverse engineering and forward engineering, in Visio for Enterprise Architects.
