List views in SQL Server database

Query below lists all views in SQL Server database

Query

select schema_name(schema_id) as schema_name,
       name as view_name
from sys.views
order by schema_name,
         view_name;

Columns

  • schema_name - schema name
  • view_name - view name

Rows

  • One row represents one view in a database
  • Scope of rows: all views in SQL Server database
  • Ordered by schema name, view name

Sample results

Comments are only visible when the visitor has consented to statistics cookies. To see and add comments please accept statistics cookies.
0
There are no comments. Click here to write the first comment.