Previous Topic: Define a Symmetric Key in SQL Server 2005Next Topic: Define SQL Server 2005 View Columns


Define SQL Server 2005 Views

Use the SQL Server View Editor to define the views in a database in a SQL Server 2005 physical model.

To define a SQL Server 2005 view

  1. Click Views on the Model menu.

    The SQL Server View Editor opens.

  2. Select the view in the Navigation Grid that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create a new view. Use the Enter filter text box to filter a very large list of views to quickly locate the one that you want to define.

    Name

    Specifies the name of the view. Change the name of the view in this field.

    Schema

    Specifies the schema of the database to which the view belongs. Select the schema from the drop-down list.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  3. Click the General tab and work with the following options:
    Encryption

    Specifies to use encryption for the view so that the view is not published during SQL Server replication.

    Schema Binding

    Specifies to use schema binding on the view, which binds the view to the schema of tables upon which the view is based.

    View Metadata

    Specifies that the instance of SQL Server returns the metadata information of the view and not the metadata of the tables upon which the view is based.

  4. Work with the other tabs in the editor to access additional design features, for example:
  5. (Optional) Click the Comment tab and enter any comments that you want to associate with the view.
  6. (Optional) Click the UDP tab to work with user-defined properties for the view.
  7. Click Close.

    The view is defined and the SQL Server View Editor closes.

More information:

Select the Tables and Columns for the View or Join Index

Define a SQL Server 2005 View Column Expression

Specify Properties for the WHERE Clause for a SQL Server 2005 View

View SQL Code for a Physical Object

Define Permissions for an Object in a SQL Server Property Editor

Change the Object Creation Order for Tables or Views

Add a Comment in a Property Editor

Add a UDP in a SQL Server Physical Property Editor