Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi Team,

I want to know How to reduce the DB Size, my case in my tables i've an varchar column. some tables im updating 60 days older record value as null. but the Database size is not yet reduced. if i tried shrink then i can feel the size difference in the log file but the .mdf file don't seen any major difference. I cant drop the column. is there is a better way to reclaim the column space.

What I have tried:

i've tried below methods to reduce spaces
01) DBCC CLEANTABLE (Test,"Testfreespace")

02) Shrink Database
Posted
Updated 28-Jun-17 21:27pm

1 solution

Start with the documentation, here : DBCC SHRINKDATABASE (Transact-SQL) | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900