SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 transaction log file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

g2559076
Starting Member

USA
5 Posts

Posted - 06/18/2011 :  19:03:17  Show Profile  Reply with Quote
hi how to reduce the transaction log of databases i know the one way it is shrink the databases is there anything else.

i was waiting like 20hr no reply

Narasimhareddy
Sql Server

Edited by - g2559076 on 06/19/2011 12:57:41

jeffw8713
Aged Yak Warrior

USA
806 Posts

Posted - 06/19/2011 :  13:27:10  Show Profile  Reply with Quote
Is your database set to full recovery model? If so, how often are you backing up the transaction log?

If you are not backing up the transaction log on a regular basis at least every hour, then you need to determine whether or not you need point in time recovery. If you are okay with restoring to your last backup and losing that data - then you can change the recovery model to simple and avoid having to do transaction log backups.

I would not recommend that approach though - you really should perform daily full backups and at least hourly transaction log backups.

Once you have that implemented, monitor the size of the transaction log backups for at least a month (to include your month end processing) and size the transaction log to a bit more than the largest backup. You can use DBCC SHRINKFILE to shrink the log file to the size you have determined is the largest it needs to be - and then leave it alone.

Jeff
Go to Top of Page

g2559076
Starting Member

USA
5 Posts

Posted - 06/19/2011 :  14:25:32  Show Profile  Reply with Quote
Thank you

Narasimhareddy
Sql Server
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000