Ask the Expert

Shrinking log file smaller than its original size

I have been working with a SQL Server database a very short while. My first database was created seven months ago, and I'm finding the growth pattern to be too big. The database has one data file and one log file. I've been able to shirnk by data file (2 GB), but I'm unable to shrink my log file (18 GB). I understand from my readings that a database's orginal log file cannot be shrunk any smaller than its original size. How can I overcome this problem? Using SQL Enterprise Manager, I've also attempted to reset growth properties for both data and log files. I want growth to be automatic at 10% (unlimited). However, this change does not retain itself. The data file property changes back to the original setting each morning which is automatic at increments of 10m (unlimited). What is causing the database properties to change, and how can I overcome this problem?

    Requires Free Membership to View

That is not correct for SQL Server 2000. Look up DBCC SHRINKFILE in Books Online.

As for resetting, you have something else going on. SQL Server doesn't magically change settings. You have to have something else doing so.


For More Information

This was first published in July 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: