Solved

good to shrink SQL DB

Posted on 2013-12-08
2
416 Views
Last Modified: 2013-12-08
Hi Experts,

I am using the SQL server 2005 and 2008.
I have read some news about shrinking a file. its not good to do this.
What is your opinion ?
When I shrink my logfile do I have to do some post steps ? maybe with the index ?
0
Comment
Question by:Eprs_Admin
2 Comments
 
LVL 22

Accepted Solution

by:
Steve Wales earned 500 total points
Comment Utility
It is generally accepted practice that shrinking a data file is a bad idea - can cause internal fragmentation of your data file.  Google "Is shrinking a SQL server datafile bad" and you'll see lots and lots of forum posts and blog entries on it.

As for shrinking a log file, have a read of this article: http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/A_11077-How-to-shrink-a-bloated-log-file.html

Feel free to come back with any questions on that.
0
 

Author Closing Comment

by:Eprs_Admin
Comment Utility
Thanks a lot.
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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

772 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

10 Experts available now in Live!

Get 1:1 Help Now