Is there an sql statement to search

Is the actual sql statement found behind the view. I am in the sql management studio, I right-clicked on the view, and I see no way to expand the sql view in the view.

+4
source share
4 answers

Views β†’ your view β†’ Script View as β†’ Create

you can also do

SELECT OBJECT_DEFINITION (OBJECT_ID(N'your view')); 
+2
source

Right click presentation and design ...

+3
source

In SSMS (subject to the appropriate permissions), you can right-click on the view and select the "Script View as" option.

0
source

And why do you already have views that are not in the source control as a script? You should not create views other than scripts.

0
source

All Articles