How can i edit the definition of a view
without having to "script" it in SSMS?
The previous easy-to-use tools from Microsoft let me:
- Enter
- wait a moment
- Make change
- Carefully move mouse to large
OK
button - Click
OK
- Down Arrow
goto 1
With SSMS i've having a much more tedious time of it:
- Carefully move mouse to small view to script
- Right-click
- wait a moment
- Carefully move mouse to small menu option
Script View as
- Carefully move mouse to small menu option
ALTER TO
- Carefully move mouse to small menu option
New Query Editor Window
- wait a moment
- Press
F5
- Carefully move mouse to tiny
x
icon - Click close button
- Carefully move mouse to large
No
button - Click
No
goto 1
i'm really not interested in scripting my view to a new query editor window. i want to edit the view definition. Microsoft seemed to implement editing the definition of a view by resorting to an ALTER VIEW
in a new query window.
Is there a way to view/edit the definition of (a lot) of views, without having to resort to the UI tedium introduced with SQL Server Management Studio?
Best Answer
Maybe you could give us a hint as to what the aforementioned "easy-to-use tools from Microsoft" were?
There is a View Designer in SSMS as an option. In Object Explorer, right-click a view, click
Design
or right-click the Views node and clickNew View...
, but it is a bit limited. If your views are at all complex (ie- much beyond simple JOINs) you're pretty much going to be scripting it.