[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SQL Maintenance Plan

Posted on 2016-11-28
3
Medium Priority
?
69 Views
Last Modified: 2016-11-28
Have a database that had some authentication issues this weekend and caused transaction log to fill up, currently not a maintenance plan on this 2008R2 SQL server, was going to setup but was wondering should i shrink the database first to clear the logs or will maintenance plan do that on first full backup?
0
Comment
Question by:leadtheway
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 41904590
You should not clear the logs before backup, they should be cleared when backing up. If you don't care about your logs, change your recovery model to simple.
0
 
LVL 1

Author Comment

by:leadtheway
ID: 41904682
Should i do a different task for each DB or just put them together on same job?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 41904684
it is your choice. If the job combining them all together does not take too long, I usually bundle them all in a single job
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

872 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