Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL Server log file scripts

Author  Topic 

aatishpatel
Starting Member

8 Posts

Posted - 2009-05-20 : 16:48:24
does anybody have or can write a good script to shrink transaction log files to 50MB. which i will run every sunday. your helpo is really appreciated.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-05-20 : 17:07:19
Do not shrink database files on a scheduled basis. You are doing unnecessary work and are actually causing performance issues.

Shrinking should only be done manually and only when necessary. You can utilize the MVJ's shrink script which can be found in the Script forum here.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -