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 2005 Forums
 SQL Server Administration (2005)
 Db Error

Author  Topic 

kwikwisi
Constraint Violating Yak Guru

283 Posts

Posted - 2009-10-08 : 04:14:34
Hi

I suddenly got such error when I try to browse my web application.
Can anyone pls tell me what is the reason of below error msg and how to resolve ?

The transaction log for database 'DatabaseName' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

Thanks in advance !

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-10-08 : 04:24:41
Check the following steps for that issue……

1. Take Backup db

2. shrink db

3. check db integrity

4. re-organize index

5. update statistics

6. Set recovery model to simple






-------------------------
R...
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-10-08 : 04:30:42
quote:
Originally posted by rajdaksha
1. Take Backup db

Not going to do anything for the log size

quote:
2. shrink db

The log won't shrink cause it's full. Shrinking the data files is a bad idea, causes fragmentation

quote:
3. check db integrity

Not necessary here

quote:
4. re-organize index

Will fail because the log is full

quote:
5. update statistics

Not going to do anything for the log

quote:
6. Set recovery model to simple


Will fix the log problem, but will leave the DB in a state where point-in-time recovery cannot be done. If the DB fails and the last full backup is a day ago, that's a day's work gone.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-10-08 : 04:31:28
Please read through this - [url]http://www.sqlservercentral.com/articles/64582/[/url]

If you still have questions on what to do after reading it, please ask.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

kwikwisi
Constraint Violating Yak Guru

283 Posts

Posted - 2009-10-08 : 04:34:21
It solved once I changed the recovery model to simple.

Thanks.
Go to Top of Page

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-10-08 : 04:34:39
Hi Monster

Nice to learn from you....i will do analysis for what u have mentioned..

Please explain the solution...at least we are learn from you...

Thanks




-------------------------
R...
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-10-08 : 05:26:16
quote:
Originally posted by kwikwisi
It solved once I changed the recovery model to simple.


You are aware that simple recovery does not allow point-in-time restores. If a full backup runs at 10pm and something happens to the database next day at 6pm, then you will have lost a full day's work. Is that acceptable?

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -