Click here to Skip to main content
15,918,685 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am having of 24gb log file and actually data around 10gb.how can i get the memory ?.i want to reduce the log file in size in sql server
Posted
Updated 11-Sep-13 19:11pm
v2
Comments
Sergey Alexandrovich Kryukov 11-Sep-13 10:22am    
Not clear, but even now it does not seem to make sense. What do you mean by "shrink"? Why a log file takes "recovering memory"?..
—SA

1) Make backup of database
2) Make backup of database transition log
3) Shrink both

If this is done during a maintenance time, the biggest problem with shrinking either the database or the log file is that they will grow. The growth may cause performance problems.

What recovery mode is the database in?
 
Share this answer
 
Comments
kalisiddayya 12-Sep-13 1:36am    
full recovery mode .i want to reduce my log file size
1) Right click on your database in Management Studio -> Properties
2) Go to 'Advanced' tab, and check for the value of Recovery Mode ; if it 'Complete', change it to 'Simple'
3) Close the properties window.
4) Backup your database
5) Shrink the log file
6) If you have changed the recovery mode to Simple in step 2, set it back to Complete.

Hope this helps.
 
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