How to Add a View to a Data Model in Redgate Data Modeler

Sometimes you need a view in your model. See how to add a view in Redgate Data Modeler.

Guest post

This is a guest post from Redgate Data Modeler.

Views are essential in cases where we want to save our SQL query and then refer to its data using SELECT * FROM VIEW_NAME. In short, views allow us to save complex queries for future use. So, how can we add them to a data model?

On the left panel, right-click Views and click Add view. Alternatively, you can also click this icon on the top menu bar or use the keyboard shortcut (simply type 5).

How to Add a View to a Data Model in Redgate Data Modeler

A view will appear on the diagram. When you click on the view, you’ll see the View properties menu to the right. Here you can change the view’s name or update the SQL query it runs.

How to Add a View to a Data Model in Redgate Data Modeler

After updating the query, scroll down and click Update columns.

How to Add a View to a Data Model in Redgate Data Modeler

Verify the columns that will be created and click Update columns.

How to Add a View to a Data Model in Redgate Data Modeler

The columns should be updated successfully.

How to Add a View to a Data Model in Redgate Data Modeler

Tools in this post

Redgate Data Modeler

Design, update, and manage database schemas

Find out more