Solved

what can cause file growth in data file (other than autogrow % formula)  when there is less/no data activity?

Posted on 2016-08-29
5
30 Views
Last Modified: 2016-09-16
the data growth setting on the data file is 10%
looking at sysfiles system view, there is plenty of unused space yet in the data file.
current data file size 460 GB, used space 370GB, free 90GB.

we wanted to keep the data file size to 410GB since data growth is relatively slow on this database.

so i shrunk the file to 410GB which worked fine.
but today, i see that the file has grown back to 460 GB.

so obviously it has grown more than 10%, and data usage is still @ 370 GB.

what could cause more than 10% growth?
0
Comment
Question by:25112
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:lcohan
Comment Utility
Do you have any scheduled jobs/tasks against that DB that are using maybe some staging tables to "load" data then delete it?

Or do you have some maintenance plan to Rebuild Indexes? as this is also growing MDF file(s).
0
 
LVL 5

Author Comment

by:25112
Comment Utility
there are 4 jobs.. will check in them how they handle..

only inserts are a concern in this context, right? not deletes?
0
 
LVL 39

Expert Comment

by:lcohan
Comment Utility
INSERTs primarily indeed however a UPDATE in sql is done as an implicit INSERT/DELETE so I'm not sure yet whats happening on on large batch updates so I need to test it.
Also rebuild indexes will definitely grow it.
0
 
LVL 5

Author Comment

by:25112
Comment Utility
>>Also rebuild indexes will definitely grow it.
yes, one job is rebuilding.

so It makes the data file to bloat and then brings it back to normal range, right?
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
Comment Utility
"so It makes the data file to bloat and then brings it back to normal range, right?"

A SQL datbase file will not "shrink" on is own unless the "Autoshrink" database option is enabled which is totally not recommend.
The T-log file will grow during the index rebuild to a specific size and my advice is to leave it like that because if you shrink it is will just grow again next time your rebuild index will run but make sure you have regular backup T-log jobs so the space inside the T-log is constantly reclaimed for use.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to get previous Data from SQL 34 89
using & in TSQL 18 21
how to extract a number from a MS SQL server string. 39 63
Sql query 34 16
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

12 Experts available now in Live!

Get 1:1 Help Now