Solved

MessageHandler Database in SQL way too large

Posted on 2016-09-21
4
40 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 46

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 46

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach 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.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

920 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

11 Experts available now in Live!

Get 1:1 Help Now