Scheduling a Shrink Database in SQL Server 2000

5 pts.
Tags:
SQL Server 2000
SQL Server backup
SQL Server Shrink Database
SQL Server transaction logs
Is there a way to schedule a shrink database after the transaction log has been backed up for a database via the maintenance plan?
ASKED: February 2, 2009  4:41 PM
UPDATED: February 3, 2009  11:29 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes, you can simply add another job step to use the DBCC SHRINKFILE statement.

However it is typically recommended that you not shrink the files on a regular basis. Doing so causes the database engine and disk subsystem to do extra work that it doesn’t need to do. If the log has grown to that size there is a reason for that, and the log will probably grow to that size again. Shrink the file after each log backup gives you a false sense of security.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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
  • SuperCoolMoss
    Is your database in simple or fully logged recovery mode? If fully logged you could considered increasing the frequency of your transaction log backups. As Mr.D says it's best not to shrink at all (from a performance perspective) if at all possible. Regards, SCM.
    140 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following