Solved

good to shrink SQL DB

Posted on 2013-12-08
2
435 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
[X]
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
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

763 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