Solved

MS SQL Server 2012 - How to reduce MSDBData.mdf file

Posted on 2014-01-22
4
4,606 Views
Last Modified: 2014-01-23
Hello from Italy,
we're running MS SQL Server 2012 under 2008 R2
(under VMware ESXi 5.1)

The unique database is the ERP database
(the size of ERP database is 28 GB)

We make the database backup two times at day
(The VM is fully backed-up every night)

We found MSDBData.mdf file is 32 GB !!!

Two questions:
1) MSDBData.mdf size may be correct?
2) How can we limit the MSDBData.mdf size?
(Can we modify some standard settings?)

Thank you very much for your worldwide help!

Mauro
0
Comment
Question by:MauroMan
4 Comments
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39800082
MDF stands for Master Data File.

The reason why your MDF file is so large, can be one of the below

The data of your database is so huge, that the MDF has grown to 32GB
The initial size of the database may be set to 32GB

From the given information, I think the case is the first one, your data itself is so huge so you have a huge MDF file.
0
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 39800120
MSDBData.mdf is the data file for the msdb system database.

msdb is responsable for the SQL Agent.

To free space, you can delete job history, and (if enabled) SQL Mail logs, and then, shrink it.

check: http://technet.microsoft.com/en-us/library/ms187112.aspx for mor info.
0
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 39800330
Typically what "bloats" msdb is SSIS packages.  If you store packages in SQL Server, they are saved in msdb.

Look at the sysssis* tables, specifically sysssispackages, to determine if this is the case in your SQL instance.
0
 

Author Closing Comment

by:MauroMan
ID: 39802417
To free space is important to create a SQL Server Maintenance Plan with Shrink Database and Clean Up History tasks!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

743 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