October 8, 2010 at 1:28 am
HI,
I have the sql server 2000 , and it's model database log file is full ,also we don't have enough space in the hard drive where this log presents.
Now we want to reduce the size of model database log file.
Please guide us to resolve this issue.
Regards
October 8, 2010 at 3:50 am
How big is model database Transaction Log file?
If you have space on the other drive please take the transaction log backup using
BACKUP LOG model TO DISK ='[DriveName]:\Filename
Then issue DBCC SHRINKFILE on the model transaction log file.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
November 10, 2010 at 7:37 am
http://msdn.microsoft.com/en-us/library/ms175495.aspx
__________________________
Allzu viel ist ungesund...
November 10, 2010 at 7:44 am
My question is why is the log file so big in the model database?
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
November 10, 2010 at 8:00 am
Michael L John (11/10/2010)
My question is why is the log file so big in the model database?
Indeed.
There should be no activity in model. There should be nothing happening to fill the log up. So what are you doing in model that's generating transaction log entries?
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
November 10, 2010 at 9:14 am
If you're not sure, check the default trace for activity.
November 10, 2010 at 9:22 am
Steve Jones - SSC Editor (11/10/2010)
If you're not sure, check the default trace for activity.
Default trace won't have queries in it. Object create/drop yes, but not normal DML.
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
November 10, 2010 at 9:51 am
GilaMonster (11/10/2010)
Steve Jones - SSC Editor (11/10/2010)
If you're not sure, check the default trace for activity.Default trace won't have queries in it. Object create/drop yes, but not normal DML.
Default trace in SQL 2000? I don't remember there being one, but it's been a few years since I used 2k. Am I just misremembering?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
November 10, 2010 at 10:00 am
Sorry, in 2008 mode. No default trace in SQL 2000.
Look for user objects or data in model. There shouldn't be anything.
November 11, 2010 at 11:54 am
Ya know... it is bizzare... Our SQL2005 and 2008 SQL Servers model log has been growing.... 20mb log backup.... what the heck could be doing this? Not in SQL 2000 though... very odd. I have not had time to setup a trace to see though.
November 11, 2010 at 1:12 pm
It should only grow through either transactions, or someone deliberately growing it.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply