List databases in Azure SQL Database

The query below lists the databases in Azure SQL Database.


select [name] as database_name,
from sys.databases
order by name


  • database_name - name of the database
  • database_id - database id, unique within an instance of Azure SQL Database
  • created_date - date the database was created or renamed


  • One row: represents one database
  • Scope of rows: all databases in Azure SQL Database, including the system database
  • Ordered by: database name

Sample results

View of databases in Azure SQL Database. Blue rectangle selects the system database.

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