List views in Azure SQL database

Query below lists all views in Azure SQL 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 Azure SQL database
  • Ordered by schema name, view name

Sample results