Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

good to shrink SQL DB

Posted on 2013-12-08
2
433 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
ID: 39705509
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
ID: 39705526
Thanks a lot.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

860 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