May 16, 2019 at 10:24 am
Dear All,
In My production environment , every six month cycle we are replace the database server.whenever replace the database we are truncate all the unwanted transaction data. My problem is after truncate the data i try to shrink the database. But not reduce the MDF file size.i tried all the possibilities like
please give solution for above this problem.
May 16, 2019 at 12:38 pm
questions:
select @@version?
May 16, 2019 at 1:19 pm
The solution is simple. Don't shrink. There is no point in shrinking if you are going to fill up the space again. Also, shrinking the data files introduces a ton of fragmentation.
You can also read SQL Server MVP Tibor Karaszi's article on the topic:
https://karaszi.com/why-you-want-to-be-restrictive-with-shrink-of-database-files.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
May 16, 2019 at 1:28 pm
please give solution for above this problem.
also, check this out:
https://dba.stackexchange.com/questions/186871/how-to-free-the-unused-space-for-a-table
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply