TSQL to find Databases, corresponding elastic pool names and DB edition – Azure

-- TSQL to find Databases, corresponding elastic pool names and DB edition

SELECT
       @@SERVERNAME as [ServerName],
       dso.elastic_pool_name,
       d.name as DatabaseName,
       dso.edition
FROM
       sys.databases d inner join sys.database_service_objectives dso on d.database_id = dso.database_id
WHERE d.Name <> 'master'
ORDER BY
       d.name, dso.elastic_pool_name
--
--

Note: User has no option to change the edition/Service tier of master database. This is expected to change based on the number of databases on a given Azure SQL Server. But Microsoft has the ability to change to address performance on a given server.

Advertisements
This entry was posted in SQL, SQL Server, Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s