IBM Database Add-Ins for Visual Studio  

IBM Database Views

You can use the IBM® Database Add-Ins to create database views that provide an alternative way of looking at the data in one or more database tables.

A view is a named specification of a result table. The specification is a SELECT statement that is run whenever the view is referred to in an SQL statement. Thus, a view has columns and rows like a base table. For retrieval, all views can be used just like base tables. A view can be used in an INSERT, UPDATE, or DELETE operation.

You use a view to customize how you see the contents of a table. You can select to view certain elements of a table by creating a SELECT statement that specifies the rows, columns, and other conditions for the returned result set. A view can show an existing table in a customized table format; you do not need to create a new table.

You can use the Server Explorer to see the current views that are in the IBM® database.

The IBM Database Add-Ins for Visual Studio provide three approaches for creating an IBM database view in Visual Studio:

To develop an IBM database view in Visual Studio:

  1. Create a view by using one of the following tools:
    • IBM View Designer
    • Visual Studio Code Editor
  2. If you used the editor to create the view from the Solution Explorer, build the view on a database server.
  3. Retrieve data from the view to view a sample of the contents.
  4. Change the view definition or edit the source code of the view, as appropriate.
  5. If you edited the source code of the view, rebuild the view on the database server.
  6. Retrieve data from the view again.

See Also

Developing IBM Database Views | IBM View Designer | Managing Procedures, Functions, and Objects


.NET Development Forum   DB2 FAQs   IDS FAQs

© Copyright IBM Corporation 2002, 2019. All Rights Reserved.