---
title: "Discussion on \"List all databases with sizes\" | Hashnode"
description: "Discussion on \"List all databases with sizes\". To list all databases along with their size in bytes on a particular server.\n$resource_group=\"rg-demo\"\n$server=\"mssql-demo-dev\"\n$databases=$(az sql db list --resource-group $resource_group --server $server --query \"[].{name:name}\" -o tsv)\n\nforeach ($..."
url: "https://hashnode.com/posts/list-all-databases-with-sizes/66d70bbe516ffc9429ca1b2f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [List all databases with sizes](https://arsalanz.hashnode.dev/list-all-databases-with-sizes?utm_source=hashnode&utm_medium=feed)

To list all databases along with their size in bytes on a particular server. $resource\_group="rg-demo" $server="mssql-demo-dev" $databases=$(az sql db list --resource-group $resource\_group --server $server --query "\[\].{name:name}" -o tsv) foreach ($...

Sep 3, 2024 · 1 min read · arsalanz.hashnode.dev  
Read the article

## Written by

[Arsalan Z](https://hashnode.com/@arsalanz)

@arsalanz

  
[View profile](https://hashnode.com/@arsalanz)

I love coding, automation & coffee.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
