Solved

high transactions on our database

Posted on 2011-03-24
4
304 Views
Last Modified: 2012-05-11
I just received the following email from my hosting company.

I have 2 questions.

1) In general what would cause transaction logs being so high
2) what are the effects of being in simple recovery model.

"Can i ask precisely what you're doing with the xxxx database at present ?

Yesterday some 77GB of transaction logs were generated, today has been 10GB - which is more than all the other databases on the server !

To ensure this database doesn't affect other users on the server, i've had to set your database to use a simple recovery model..."
0
Comment
Question by:frosty1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
lcohan earned 500 total points
ID: 35208319
1. Insert/update/deletes are all logged transactions in SQL plust other operations like some DDL changes and a re-index for instance.

2. Setting database to Simple recovery will reduce somewhat transaction logging however this may impact your disaster recovery/point in time restore/log shipping capabilities.

http://msdn.microsoft.com/en-us/library/ms189275.aspx
0
 
LVL 7

Expert Comment

by:larry urban
ID: 35208354
The log is so large because backups are not scheduled to run on it or not often enough.
0
 
LVL 4

Expert Comment

by:jimtpowers
ID: 35208458
When my logs fail to back up, they will grow uncontrollably. Just last week, rights on the backup server were modified and I didn't catch it until the next day. The logs consumed the entire log drive, an extra 150 GB in 18 hours. Once I discovered the problem, I had to do a full backup and then another transaction log backup before I was able to shrink the log file back down to the appropriate size.

I believe @Todar is correct in that your hosting company is not backing up the logs frequently enough to keep them small. As @Icohan indicated, simply recovery will prevent restoring to a point in time other than your full backup.
0
 
LVL 40

Expert Comment

by:lcohan
ID: 35209379
Backing up the db's and t-logs should not be left for the hosting company to do but the owner of the database business rules should drive the backup/restore from disaster recovery point of view nut just regular maintenance. Backing up regularely the T-Logs will reduce the amount of disk space the T-logs are taking and indeed keep that under control but will NOT eliminate excessive logging. For that you may need to do a code review and eliminate unnecessary transactions that are filling up your t-logs.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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