Solved

MessageHandler Database in SQL way too large

Posted on 2016-09-21
4
33 Views
Last Modified: 2016-09-21
I have a database in SQL Server 2008 that is reporting it is 1.5GB when the actual size is a fraction of that.

EXEC sp_spaceused reports that the database is 1533.07MB

EXEC sp_msforeachtable 'EXEC sp_spaceused [?];' reports the following sizes;
MessageBacklog 400KB
activejobs - 4832KB
queuelog - 1496KB

Does anyone know why the size of the file is 1.5GB? Is there a way to reduce this?

EDIT: I attached an image of the size results.

Thanks
sql.png
0
Comment
Question by:filtrationproducts
  • 2
  • 2
4 Comments
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 41808985
The size of a database is all objects plus transaction log.
The size of the tables is data plus indexes.
With that said, isn't linear sum as you did.
0
 
LVL 1

Author Comment

by:filtrationproducts
ID: 41809008
Is there a way to identify the object or transaction log that is taking up the space and if possible how would I reduce the size?
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41809027
Is there a way to identify the object or transaction log that is taking up the space and if possible how would I reduce the size?
Transaction log stores all transactions that were performed on the database. If it's big then I guess your database is in Full Recovery Model and not performing any Transaction Log backup. After a TLog backup the logs will be truncated but the file will keep the same size. To reduce the file size you'll need to shrink it.
0
 
LVL 1

Author Comment

by:filtrationproducts
ID: 41809117
I checked, and the database is using the Simple Recovery model.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now