To create a new view, right-click on the Views node under the connection node in Server Explorer. From the node's context menu, choose the Create View command. This command opens the SQL Editor.
To modify an existing view, double-click on the node of the view you wish to modify, or right-click on this node and choose the Alter View command from the context menu. Either of the commands opens the SQL Editor.
To create or modify the view definition using SQL Editor, type the appropriate SQL statement in the SQL Editor. Note: You should enter only the defining statement itself, without the CREATE VIEW AS preface.
All other view properties can be set in the Properties window. These properties are:
AlgorithmCheck Option
Definer
Name
Security Type
Some of these properties can have arbitrary text values, others accept values from a predefined set. In the latter case set the desired value using the embedded combo box.
The properties Is Updatable, Schema, and Server are read only.
To save changes you have made, use either Save or Save All buttons of the Visual Studio main toolbar, or just press Ctrl+S. Before changes are saved, you will be asked to confirm the execution of the corresponding SQL query in a confirmation dialog.