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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Daily tasks of maintenance backups jobs

Author  Topic 

TRACEYSQL
Aged Yak Warrior

594 Posts

Posted - 2007-01-24 : 15:54:31
hi there i was wondering if someone check im do all this correctly.

Backup first 12:00

Each night i do a Index Rebuilds 1:00 AM
AT_Fau
AT_Sec
AT_S2


Update Statistics used by Query Optimizer
All system tables 2:30 am
All users tables 2:45 am



Database Integrity check databases
All system tables 3:30 am
All user tables 4:00 am


Confused about system tables...
Is doing update statistics on system tables and database integrity the correct thing to be doing.
Should i be doing dbcc reindex on system tables (i read this should not be done)

I put the integrity check databases last as i want to make sure its correct after applying indexes and statistics
Thanks

Kristen
Test

22859 Posts

Posted - 2007-01-25 : 04:18:08
If your database is in FULL Recovery Model, AND you are doing TLog Backups frequently during the day, I would consider doing the FULL Backup after the Rebuilds and Statistics Update.

The Rebuilds etc. will take up considerable TLog space, and if you have to restore it will take longer to restore all that Reindex stuff before you even get to start restoring the actual user data changes!

For SIMPLE Recovery Model it probably doesn't matter so much, although given the choice I would prefer my backup to be "all nicely rebuilt", so that any restore gets the database back in optimal state (given that there will have been downtime doing the restore and work lost). However, if you are doing the rebuilds every day I suspect a backup that is 23-ish hours after the previous Rebuild will still be in good shape, so I reckon this is a pedantic point.

Only other thing I would worry about is if any of the steps could overlap. (We use a single Stored Procedure to run ours to ensure that they are done sequentially). You might like to put a check in place to be sure that, as your databases grow, or you add more, that none of the steps overruns into the next schedule.

Kristen
Go to Top of Page

TRACEYSQL
Aged Yak Warrior

594 Posts

Posted - 2007-01-25 : 09:02:45
Single procedure seem like a good idea....as im trying to schedule it around with the database maintenance wizard.....

Do you have a copy of it so i can see that be nice :)

We use Simple mode....


Thanks very much
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-01-25 : 09:06:12
"Do you have a copy of it so i can see that be nice"

Its deeply linked into our Admin table structure, so not straightforward to give you an example.

Tara has some in her blog, but I think they just do the individual tasks; might give you some ideas though.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Tara%20Blog%20Houskeeping%20Routines,Automating%20Backups

Kristen
Go to Top of Page

TRACEYSQL
Aged Yak Warrior

594 Posts

Posted - 2007-01-25 : 09:55:14
Thanks i take a look at it and see if i can put one together....
Go to Top of Page
   

- Advertisement -