Database Size

my database size is growing day by day and there is no any rule apply for maintaince and delete un-required space from database, please advise what is the basis rule i have to apply on my database and how can reduce database size?
MehramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
which database ?
0
MehramAuthor Commented:
In which user are entering data on daily basis
0
wstuphCommented:
What database type, he means.  Oracle, SQL Server, Access, etc...
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MehramAuthor Commented:
SQL Server

I have apply following for reducing log file, please guide how to reduce mdf

DBCC SHRINKFILE(Imp_Afg_Opr_Log, 1)
BACKUP LOG DLI_DB WITH TRUNCATE_ONLY
DBCC SHRINKFILE(Imp_Afg_Opr_Log, 1)
0
Aneesh RetnakaranDatabase AdministratorCommented:
BACKUP LOG DLI_DB WITH TRUNCATE_ONLY
DBCC SHRINKFILE(Imp_Afg_Opr_Log, EMPTYFILE )
0
Aneesh RetnakaranDatabase AdministratorCommented:
Also u can set the recovery option as 'Simple'

ALTER DATABASE urDB
SET RECOVERY SIMPLE
0
MehramAuthor Commented:
The above statment is reducing only log, I want to remove also free space from MDF
0
Aneesh RetnakaranDatabase AdministratorCommented:
u can  try
DBCC SHRINKDATABASE
0
Aneesh RetnakaranDatabase AdministratorCommented:
ALternatively u can enable the autoshrink option for the database
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MehramAuthor Commented:
Working.

The have statment I have to run when need, or there is any other way through which it will be automatically done?
0
Aneesh RetnakaranDatabase AdministratorCommented:
you can schedule a job for this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.