I have a view in SQL Server 2008 and would like to view it in Management Studio.
Example:
--is the underlying query for the view Example_1 select *
Use sp_helptext before the view_name. Example:
sp_helptext
view_name
sp_helptext Example_1
Hence you will get the query:
CREATE VIEW dbo.Example_1 AS SELECT a, b, c FROM dbo.table_name JOIN blah blah blah WHERE blah blah blah
sp_helptext will give stored procedures.