April 22, 2009 at 1:02 pm
Guys,
Apart from setting the database to "simple recovery mode" what other options do I need to set to prevent the log getting too big? I have a database set to simple recovery mode and the log is still growing and getting bigger unless I perform a backup and shrink the log file.
can somebody tell me what I can do to prevent the log getting too big?
April 22, 2009 at 1:10 pm
Gail has written a nice article : http://www.sqlservercentral.com/articles/64582/
Also keep in mind you transaction log will grow up to the size it needs to handle your largest transaction !
Also keep in mind any given sql statement runs at least in its own transaction scope.
Imagine update mytable set colx = 'abc' on a table that occupies 20GB (without a where clause) may need xGB to complete that statements transaction !
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 22, 2009 at 1:56 pm
Thank you for the info.
The database I am having issue with the recovry mode set to simple is been use by Sharepoint application. With the covery mode set to simple, the log continue to grow out of hands.
April 22, 2009 at 11:44 pm
is dbcc opentran showing info (execute in the correct database !)
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 23, 2009 at 1:37 am
Query sys.databases. What does the log_reuse_wait_descr column say for this database?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply