Partager via


Visual Database Tool Designers

The Visual Database Tools are a combination of design tools you can use to work with a data source. You can use them to create queries, design or modify a database structure, or update data. The tools are Database Diagram Designer, Table Designer, and Query and View Designer.

Properties Window

The properties window is not specific to Visual Database Tools, but it is where many modifications can be made. It shows the properties for the item currently selected (like a table) and allows you to edit those properties (everything from the properties name to the collation of a column). Some properties can be seen in the properties window but must be modified in a different tool. For more information about the properties window, see Properties in Visual Database Tools.

Database Diagram Designer

Database Diagram Designer provides a window where you can visually create, edit, and show the tables and relationships in a database.

To display Database Diagram Designer, open an existing diagram or right-click the Database node in Server Explorer and choose Add New Diagram from the drop-down menu.

Once the designer is open, the Database Diagram menu appears in the main menu. This menu is the access point to the designer's special features.

Note

This designer works with Microsoft SQL Server databases.

This version of Visual Database Tools does not support Microsoft SQL Server 7.0 and earlier.

Table Designer

Note

A new version of Table Designer appears for databases in the SQL Server 2012 format. This topic describes the old version of Table Designer, which you use with databases in earlier formats of SQL Server.

In the new version, you can change a table definition through a graphical interface or directly in a script pane. If you use the graphical interface, the table’s definition is automatically updated in the script pane. To apply the SQL code in the script pane, choose the Update button. For more information about the new version, see How to: Create Database Objects Using Table Designer.

Table Designer is a visual tool allowing you to design and visualize a single table in a Microsoft SQL Server database to which you are connected.

Table Designer has two panes. The upper area shows a grid; each row of the grid describes one database column. For each database column, the grid displays its fundamental attributes: column name, data type, and nulls-allowed setting.

The lower area of Table Designer, the Column Properties tab, shows additional attributes for whichever column is highlighted in the upper area.

From Table Designer, you can also right-click in the grid section to access dialog boxes through which you can create and modify relationships, constraints, indexes, and keys for the table.

To display Table Designer, open an existing table, or right-click the Tables node in Server Explorer, and choose Add New Table from the drop-down menu.

Once the designer is open, the Table Designer menu appears in the main menu. This menu is the access point to the designer's special features.

Note

This designer works with Microsoft SQL Server databases.

This version of Visual Database Tools does not support Microsoft SQL Server 7.0 and earlier.

Query and View Designer

Query and View designer is actually two tools that work in very similar ways. Some of the major differences are:

  • Views are saved with the database while a query is saved with a Visual Studio database project.

  • Query Designer works with nearly any data source, where View Designer works only with SQL Server.

  • Query Designer allows you to design SELECT, INSERT, UPDATE and DELETE DML statements, while views can only contain SELECT statements.

View Designer

View Designer allows you to design and visualize an existing view or create a new one in a Microsoft SQL Server database to which you are connected.

View Designer has four panes: the Diagram pane, the Criteria pane, the SQL pane, and the Results pane. For more detailed information on each of these panes, see Query and View Designer Tools.

To display View Designer, open an existing view or right-click the View node in Server Explorer and choose Add New View from the drop-down menu.

Once the designer is open, the Query Designer menu appears in the main menu. This menu is the access point to the designer's special features.

Note

This designer works with Microsoft SQL Server databases.

This version of Visual Database Tools does not support Microsoft SQL Server 7.0 and earlier.

Query Designer

Like View Designer, Query Designer has four panes: the Diagram pane, the Criteria pane, the SQL pane, and the Results pane. For more detailed information on each of these panes see Query and View Designer Tools.

To display Query Designer, right-click the Tables node in Server Explorer and choose New Query from the drop-down menu.

Once the designer is open, the Query Designer menu appears in the main menu. This menu is the access point to the designer's special features.

Note

This designer works with most data sources.

See Also

Reference

Designing Database Diagrams

Other Resources

Understanding Visual Database Tools

Designing Tables

Designing Queries and Views