How to Find SCCM Database Size using SQL Query

In this post, I will show you how to find SCCM database size using SQL query. SQL Server allows you to manually check the size of the SCCM database, including free space details.

We know that each Configuration Manager site requires a supported SQL Server version and configuration to host the site database. Older versions of SQL Server installed for SCCM must be updated to recent version as they provide better performance.

SQL Server is used to store information for Configuration Manager sites. Each site in a Configuration Manager hierarchy contains a site database and a server that is assigned the site database server role.

You must be aware of the size of the SCCM database because occasionally, you may run out of the disk space. For example, the size of the report server database log file taking up most of the disk space is one of the most common problems ConfigMgr administrators run into. Luckily, you can shrink the size of SCCM reporting services log database.

You might need to look at the data being stored in the DB if your SCCM database is using up more disk space. The ConfigMgr database should not be shrunk because doing so would just reduce performance; instead, it is advised that you increase your disk space if necessary. If you do shrink it, run your database maintenance operations on it afterwards because your indexes will likely be fragmented.

http://forums.worldsamba.org/showthread.php?tid=31524

https://australiantravelforum.com/travel/showthread.php?tid=114380

http://hondaikmciledug.co.id/HRIS/showthread.php?tid=23&pid=25

https://socalireefer.com/forum/showthread.php?tid=308622

http://famstock.co.uk/showthread.php?tid=1

https://csgamearena.net/showthread.php?tid=35118

http://ordemdospsicologos.org/forum/showthread.php?tid=335&pid=5536

http://zinaramirez.com/mybb/thread-15010.html

https://remont.biz.pl/forum/thread-141517.html

https://forum.bedwantsinfo.nl/thread-150005.html

http://forum.inphtech.pt/viewtopic.php?t=195873

http://forum.inphtech.pt/viewtopic.php?t=178829

http://forum.inphtech.pt/viewtopic.php?t=196833

http://forum.inphtech.pt/viewtopic.php?t=208861

https://www.wirthling.com/forum/viewtopic.php?t=22518

https://www.wirthling.com/forum/viewtopic.php?t=20658

https://www.wirthling.com/forum/viewtopic.php?t=22519

https://www.wirthling.com/forum/viewtopic.php?t=22464

http://www.gartenwelt-oppl.at/forum/viewtopic.php?f=11&t=447520

http://www.gartenwelt-oppl.at/forum/viewtopic.php?f=11&t=448073


Determine the Size of ConfigMgr Database

There are two ways to determine the size of SCCM database: using SQL query and manually checking the database properties in SQL Server. Using a SQL query provides more details in the output, and you can even export the database size details to a file.


Some useful SQL queries that you can use with Configuration Manager are listed below:

  • SCCM SQL Query to Find Last Restart Time of Devices
  • SCCM SQL Query: Find Last Heartbeat Time Stamp of Clients
  • Find SCCM Application Deployment Details using SQL Query
  • Quickly List SCCM Packages using SQL Query | PowerShell


How to Find SCCM Database Size using SQL Query

Let’s go through the steps to find the size of SCCM database using a SQL query.

  • Launch the SQL Server Management Studio.
  • Connect to the Database Engine with your credentials.
  • Right-click SCCM Database and select New Query.
  • In the query window, enter the below SQL query and click Execute.
  • The query output shows the SCCM database size and file path details.


From the query output, you get the size of the SCCM database in MB along with following details:


  • DBName: The name of the SQL database that holds the ConfigMgr data.
  • FileSize (MB): The total size of the ConfigMgr Database in MB.
  • UsedSpace (MB): The total space utilized.
  • FreeSpace (MB): Free space remaining in SCCM database.
  • GrowthSpace (MB)

http://www.gartenwelt-oppl.at/forum/viewtopic.php?f=11&t=447533

https://forum.trapeza.ru/viewtopic.php?t=275632

https://forum.trapeza.ru/viewtopic.php?t=43265

https://forum.trapeza.ru/viewtopic.php?t=207018

https://forum.trapeza.ru/viewtopic.php?t=274747

http://theglobalfederation.org/viewtopic.php?id=116850

http://theglobalfederation.org/viewtopic.php?id=579031

http://imsf.ru/forum/index.php?topic=7170.0

http://imsf.ru/forum/index.php?topic=5458.0

http://imsf.ru/forum/index.php?topic=7126.0

http://www.hertha03-fz2.de/phpBB3/viewtopic.php?f=6&t=165617&p=266158

http://www.hertha03-fz2.de/phpBB3/viewtopic.php?f=9&t=301

http://www.hertha03-fz2.de/phpBB3/viewtopic.php?f=6&p=272473

http://www.hertha03-fz2.de/phpBB3/viewtopic.php?p=285

http://forums.lonelybitsgames.com/viewtopic.php?t=813830

http://forums.lonelybitsgames.com/viewtopic.php?t=823596

https://forums.lonelybitsgames.com/viewtopic.php?t=817769

https://forums.lonelybitsgames.com/viewtopic.php?t=801942

Check the Size of SCCM Database from SQL Server

If you want to avoid using a SQL query to find the size of SCCM database, you can manually check the database size from SQL server. To accomplish that, launch the SQL Server Management Studio and connect to Database Engine. Expand Database and right-click on ConfigMgr Database and select Properties.

On the Database Properties window of Configuration Manager database, select General option. On the right-hand side, you can see the size of the SCCM database along with total space available. The SQL collation details are also shown in the same window.


Read Next

  • How to Install SCCM Reporting Services Point | ConfigMgr SSRS
  • 3 Ways to Find SCCM Maintenance Windows for a Computer
  • 3 Useful WSUS Maintenance Options in Configuration Manager
  • How To Enable WSUS Cleanup in ConfigMgr – Bonus Guide

Comments

Popular posts from this blog

The 10 Best Apartment Websites of 2019

The 10 Best Sites for Free Stock Images

How to get Amazon Prime for free for Prime Day