Does anyone know the diff between shrink database or file? and what would the pros and cons? in what circumstances you wish to do either one?
thanks
|
Does anyone know the diff between shrink database or file? and what would the pros and cons? in what circumstances you wish to do either one? thanks | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Basically, DBCC SHRINKFILE shrinks one file, but DBCC SHRINKDATABASE shrinks all files. This is well documented in Books Online: see the entry for DBCC SHRINKDATABASE. The sections "How DBCC SHRINKDATABASE works" and "Best practices" should answer your questions. | |||
|
feedback
|
|
As for some pros/cons, read this article from Paul Randal, and his advice against SHRINKDATABASE. Just throwing it out there for you. | |||||||
feedback
|