Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Database having multiple table with limited rows and updated the rows in every 5 seconds. Everyday the database size increasing in 10000 mb. Each table size is lessthan 1 mb. Please suggest for the problem.

What I have tried:

SQL Database option of Shrink file & Database.
Posted
Updated 6-Mar-20 22:17pm

Databases grow naturally, as you add and remove, or update rows. This is because botheth tables grow, and the log files which store information on what happened to the DB get larger as well.
Start with your logs: Managing Transaction Logs – SQLServerCentral[^]
Then consider rebuilding your indexes: Reorganize and Rebuild Indexes - SQL Server | Microsoft Docs[^]
And finally you can specify growth patterns: SQL Server Database Growth and Autogrowth Settings - Simple Talk[^]
But do these in that order - they will produce the "best effect" first, and cause more problems as you move down the list: setting a max size can casue some real problems later on if you aren't careful.
 
Share this answer
 
Comments
Ramkitg@gmail.com 9-Mar-20 8:29am    
Thanks for your reply, I don't want to create log file, so it is not growing but mdf files increasing drastically. 10000 mb per day. Any idea on this.Thanks in advance.
You should setup regular transaction-log backups, so that log file can be trimmed and avoid growing until its size limit.
Back Up a Transaction Log - SQL Server | Microsoft Docs[^]
 
Share this answer
 
In addition to the other tips, here is a free tool that you can use to manage your indexes: https://www.slant.co/topics/13640/viewpoints/4/~free-tools-for-sql-server~sql-index-manager[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900