Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i insert millions of records and my mdf file take 22Gb and ldf 25Gb
i delete huge table size of my database and its remain this size
no changing
how i clean this size?
why this size show to me ?
i do not have any huge table ever !!!

[updated on behalf of the OP]
why after i delete my tables its stay in same size ?
[/updated]
Posted
Updated 16-Sep-14 3:21am
v2

1 solution

Hi,

Have a look at the MSDN how to Shrink a Database.

If you want to do this programiticaly,have a read at DBCC SHRINKDATABASE command.

Hope it helps.
 
Share this answer
 
Comments
CPallini 16-Sep-14 9:20am    
5.

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