I am sure this is a simple question, but I am having no luck getting it answered.
I have a number of views in a MS SQL 2008 database I am now supporting but I am not able to find how to access the queries that define the views. I need to see that to get a list of all tables and databases the views are accessing.
several ways, right click on the view and select SCRIPT View AS–>CREATE TO–> New Query Window (see picture below) , don’t click design because the designer doesn’t support CASE and other statements
or
or
or
‘