Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Maintenance Plans - Under the Covers!


SQL Maintenance Plans - Under the Covers!

Author
Message
Andy Warren
Andy Warren
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: Moderators
Points: 8204 Visits: 2712
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/awarren/sqlmaintenanceplansunderthecovers.asp>http://www.sqlservercentral.com/columnists/awarren/sqlmaintenanceplansunderthecovers.asp

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
meird
meird
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 102
This checkindex statment is a bit vage for me too, but i think that in SQL Server 6.5, when you execute DBCC CHECKINDEX, you can see in the profiler a statment that looks like the one in the article - with 'checkindex' inside a select. I guess that this is some kind of internal usage of the previous and unsupported DBCC CHECKINDEX.

Meir Dudai,
Software Resources Ltd.
Israel



Klein Piet
Klein Piet
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 215

Hi there,

I am new in the sql enviroment, so pleae be gentle and offer your advice!

I need some help concerning the maint plan in EM. I need to run complete backups on all my databases(about 2000 DB's) When i use maint plans the "Transaction Log Backup Job" fails because the recovery models of the DB's differ.

This part i understand, but i need a script that i can run that will automatically detect recovery model and do backups accordingly! Because about half of my DB's are DEVELOPER DB's. So i cant go and schedule different jobs for every database, and go back to check them everyday! That will be a monitor nightmare.

Please help me, any help will be appreciated.

Piet


Andy Warren
Andy Warren
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: Moderators
Points: 8204 Visits: 2712
You can probably find a script in the library that will handle this for you. If you still want to do the maintenance plans you have to hack at it. You'll need two plans, one that does transaction log backups and one that doesnt. Then - Im sorry I dont have the name handy which isnt helpful - there is a table that is in MSDB that contains the db names to be processed by each plan. So you would need a job that right before the maintenance plan to add/remove the appropriate rows from each plan. Or you could just ignore that category of error, but be cautious about just ignoring errors easy to miss an important one amidst the noise.

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
henri flokstra
henri flokstra
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 177
@Piet, i am curious how it is going and how have you implemented your maintance plans / backup strategy?

------------------------------------------------------------
Application Architect and Developer @ Traffic4u
Visit my profile on LinkedIN
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search