Click here to Skip to main content
15,887,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have deleted data from a SQL table using a delete query. The data has been deleted successfully, but it increased the size of the .ldf and .mdf files.

How to decrease the size of the database after deleting data from database?
Posted
Updated 6-Feb-12 23:24pm
v2
Comments
André Kraak 7-Feb-12 5:25am    
DO NOT SHOUT when asking a question. When you use all capital letters it is seen as shouting on the Internet and considered rude. Next time when posting a question please use proper capitalization.

Edited question:
Spelling/Grammar

1 solution

Hello,

Use shrink command to do so.
 
Share this answer
 
Comments
vrushali katkade 7-Feb-12 5:51am    
how to used the shrink command in vba code

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