Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MessageHandler Database in SQL way too large

Posted on 2016-09-21
4
Medium Priority
?
60 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 52

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 52

Accepted Solution

by:
Vitor Montalvão earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

618 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