Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Log file is too large than data file

Posted on 2012-12-26
4
Medium Priority
?
278 Views
Last Modified: 2013-04-05
There is Log file is too large than data file..

What would be the best way to shrink log file in SQL server

The transaction logs are too large, a s I noticed log file size is very large compared to data file & major problem is that the transaction log is continuing to grow

I am looking for a recommended solution to shrink our transaction logs
0
Comment
Question by:jjjosef
  • 2
4 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38722908
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38722913
0
 
LVL 2

Accepted Solution

by:
RRobinho earned 0 total points
ID: 38726164
If you are in FULL recovery mode; database log will continue to grow unless you backup the transaction log

If you do not need point in time recovery, you may to switch to simple recovery mode

Also Rebuilding the index may cause this. Use SORT_IN_TEMPDB option when rebuilding indexes

Refer the article in case

MSDN Library
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question