Solved

MessageHandler Database in SQL way too large

Posted on 2016-09-21
4
45 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 47

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 47

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
export sql results to csv 6 35
Sql Query 6 65
SQL Query assistance 16 24
SQL Count issue 24 15
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

770 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