truncate logs regularly

It is a painful experience for all us administrators to truncate logs regularly. I just created a job to executesp_msforeachdb "use ?; backup log ? with truncate_only ; dbcc shrinkfile(2,5)"on all the servers at frequent intervals. It has saved me a lot of time. hope it helps you too.n.b: I assume that file id 2 […]

2003-04-18

306 reads

Blogs

A simple powershell script to look up server hardware and OS information

By

This is a simple powershell script to query and display hardware and OS information...

Collecting Server Performance Metrics: Performance Monitor

By

Whether you’re a DBA/administrator looking to tune a server, planning for hardware updates, or...

Introduction to SQL Server Execution Plans

By

Watch this week’s episode on YouTube! I nearly always use execution plans as the...

Read the latest Blogs

Forums

Evergreen SQL Server

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Evergreen SQL Server

Do you really know what’s happening with your servers?

By Additional Articles

Comments posted to this topic are about the item Do you really know what’s...

Going from long to wide

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Going from long to wide

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers