Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 question about Transaction Log Tab under db props

Author  Topic 

samsonpablo
Starting Member

3 Posts

Posted - 2010-11-22 : 14:16:24
Hi, I inherited a db that was set to allow the transaction log to grow unrestricted. It's running on rather old hardware on mirrored 8gb drives. The transaction log is ~6gb, the actual data files are only ~550mb :-/ The transaction logs go back to 2005 when this system was first put into production. If I go into the transaction log tab under database properties and set "Restrict File Growth" to something like 4gb, what becomes of the current transaction log? Will the oldest entries just roll off or will all the transaction logs be lost?

thanks!

-sam

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-22 : 14:27:44
What is the recovery model set to? If it's not SIMPLE, then how often are you running tlog backups?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

samsonpablo
Starting Member

3 Posts

Posted - 2010-11-22 : 15:05:21
Thanks for the quick reply Tara. I should have added that I'm not a dba, I'm doing contract unix sysadmin, networking and infosec work for the company. The person who took care of this just left and it was handed to me because there are no other IT folks...

The recovery model is set to full and append log backups occur to a different drive every 3 hours 7am-8pm (it's only used during the day). They are running nightly tape backups but I also just set the backups to go to an external drive because AFAIK they've never actually tested a restore. My primary concern is freeing some disk space so the system can continue to run until it's migrated to sql server 2005. I take it that my original question was not as simple as I thought? :-)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-22 : 15:13:34
Increase the frequency of your tlog backups. We do ours every 15 minutes and are able to control the tlog size as a result.

You can shrink the file size down after you've increased the tlog backup frequency. I'd suggest trying 500MB and then watching the system for the next few days.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-22 : 15:14:04
Oh and you shouldn't just backup the tlog during the business hours. Maintenance routines typically run during the off hours and those need to be backed up too.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

samsonpablo
Starting Member

3 Posts

Posted - 2010-11-22 : 15:21:46
Thanks Tara!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-22 : 15:38:32
You're welcome, glad to help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -