My stored procedure when executed on server machine takes nearly 1hr. So when I check the log file, its size was near to 65 GB. Guess these logs are killing my store procedure performance. How can I clear the logs safely?
I got suggestion to take backup of transaction logs and change recovery mode from full to simple and shrink the file and change it back to full mode and run a job such that transaction logs are getting back up periodically.
When I tried to shrink the file i noticed that my available free space was 5%. So even if I shrink, my file size will be around 60gb.
How can I clean my transaction logs? Can someone help me with this issue?
Thanks in advance.