Solved

modellog.ldf 8 GB how to shrink - SQL Server 2000

Posted on 2011-09-02
3
1,321 Views
Last Modified: 2012-06-27
Hi all.

How do I shrink the size of the modellog.ldf, it's currently at 8GB.

Thanks.
0
Comment
Question by:printmedia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Assisted Solution

by:Chris Mangus
Chris Mangus earned 250 total points
ID: 36475227
Nothing should be using model database.  Strange.  I would investigate that.

Anyway, you can shrink it like any other database, right-click on the database, choose tasks, shrink files, select the log file, choose reorganize pages and set the value to 1.  Then, click ok.

0
 
LVL 6

Expert Comment

by:markterry
ID: 36475229
It depends on your recovery model. If your recovery model is full (default) then you need to change it to simple recovery model to do a file shrink on the log (right click database, shrink > files, select log).

For more information on recovery models see this article (requires signup) or do a google search for "SQL Server Recovery Models".
SQL Server Central - Recover Models Article
0
 
LVL 6

Accepted Solution

by:
markterry earned 250 total points
ID: 36475240
Sorry, just noticed it was a system db you were talking about. Same theory applies, try to shrink before changing recovery model.

See this article possibly:
http://www.itbangbang.net/2010/06/how-to-shrink-large-modellogldf-file.html
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server Trigger 8 37
SQL Server Error while building a sql query using concatenate statements 3 20
Help needed in sql query 4 29
SQL 2012 Instance Problem 3 59
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question