Link to home
Start Free TrialLog in
Avatar of MauroMan
MauroManFlag for Italy

asked on

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

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
Avatar of Surendra Nath
Surendra Nath
Flag of India image

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.
ASKER CERTIFIED SOLUTION
Avatar of x-men
x-men
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of MauroMan

ASKER

To free space is important to create a SQL Server Maintenance Plan with Shrink Database and Clean Up History tasks!