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