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 Administration
 Is using Maintenance plans a good idea for this?

Author  Topic 

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 06:08:51
Good morning,

We have 5 SQL Servers used by operations team.

QBDB01 - 62 Databases
QBDB02 - 41 Databases
QBDB03 - 39 Databases
QBDB04 - 31 Databases
QBDB05 - 28 Databases

The databases are mainly staging databases where data files are imported, scrubbed, merged etc.. It's usually one person working on the database at any one time.

The current backup process works like this:

1) All user databases set to Simple recovery model
2) A SQL job is run manually every two weeks to perform a full backup of all the databases except for master and tempdb
3) Another job which performs differential backups is run daily at midnight.

They've had this setup for a number of years now but I'm thinking of creating a maintenance plan on each SQL server to perform the backups instead. Would this be a good idea?

Any thoughts on this?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-08-22 : 11:21:54
I don't see why you need a maintenance plan for this, but one is fine. I would just stick with the current setup though, no use spending time on something that is already setup fine.

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

Subscribe to my blog
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-08-22 : 11:39:32
how come you're not backing up the master db?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-08-22 : 12:08:40
quote:
Originally posted by jackv

how come you're not backing up the master db?




Oh I missed that part. That needs to be fixed!

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

Subscribe to my blog
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-08-22 : 14:10:38
Abu-Dina - do you mean model and tempdb ?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

komkrit
Yak Posting Veteran

60 Posts

Posted - 2012-08-22 : 14:15:06
SQL Agent Job can achieve the same goal as Maintenance Plan.
While it's already done, you don't need to do Maintenance Plan to got the same thing.

But !!! if you look into the advantages of Maintenance Plan over SQL Agent Job, focus something that benefit for you.
If it's not worthy to do, leave SQL Agent Job to be the same.

- Maintenance Plan give a friendly UI, don't need to remember any command, just click and go.

- Don't need to make script yourself, especially some task that need to create BATCH Command (e.g. delete file older than xx days).

- Most important part, dynamic database name, you can create task to backup "All User Databases" without specifying exactly database name.
This is beneficial to the system that new databases were added frequently. Just specify "All User Databases", it will automatically create lists of databases to be backup at run-time.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Komkrit Yensirikul
Welcome for all questions. Let us know if our solution solved your problem.
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 15:35:19
quote:
Originally posted by tkizer

I don't see why you need a maintenance plan for this, but one is fine. I would just stick with the current setup though, no use spending time on something that is already setup fine.

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

Subscribe to my blog



That's a fair point and it just shows how confused I am at the moment.

The current setup is fine you're right. There are some things missing:

1) masterdb is not backed up and this I can change easily. It's being intentionally left out from our backup sproc so I can make this change no problems there.

2) the fortnightly SQL job is being run manually. The job needs a schedule.

The other thing I want to do is setup email notification (currently disabled - going to take a long time to get approval to enable it)

Something I would like to implement is a reports that I can send to management about the status of the backups, db growth on servers etc.

I'd be interested to know if anyone has come across something similar?

Thanks.
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 15:39:12
quote:
Originally posted by jackv

how come you're not backing up the master db?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com



I don't know I started this new role last month. From knowledge gained so far I also agree it should be backed up along with the other databases.
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 15:40:29
quote:
Originally posted by jackv

Abu-Dina - do you mean model and tempdb ?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com



The current sproc backs up all databases except for tempdb and master.
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 15:48:13
quote:
Originally posted by komkrit

SQL Agent Job can achieve the same goal as Maintenance Plan.
While it's already done, you don't need to do Maintenance Plan to got the same thing.

But !!! if you look into the advantages of Maintenance Plan over SQL Agent Job, focus something that benefit for you.
If it's not worthy to do, leave SQL Agent Job to be the same.

- Maintenance Plan give a friendly UI, don't need to remember any command, just click and go.

- Don't need to make script yourself, especially some task that need to create BATCH Command (e.g. delete file older than xx days).

- Most important part, dynamic database name, you can create task to backup "All User Databases" without specifying exactly database name.
This is beneficial to the system that new databases were added frequently. Just specify "All User Databases", it will automatically create lists of databases to be backup at run-time.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Komkrit Yensirikul
Welcome for all questions. Let us know if our solution solved your problem.



All fair points.

Of course you are right but i am not a seasoned DBA Im afraid so maybe I'm going for the easier solution!

everything that a maintenance plan does can be done with TSQL and SQL jobs it's true I know :)

I may need to take a step back and re-think my whole approach. I must sound so confused lol. See my reply to Tara above. I'd be interested to know your thoughts.

Thanks.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-08-22 : 16:15:10
Tempdb should be excluded, so don't change that. Just add master database to the current job. I even backup model database as it could have things in it that I need since that's a template database.

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

Subscribe to my blog
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 16:52:54
Heh.. I actually meant master not tempdb sorry! (i've corrected my error above).

Thanks for pointing this out
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-22 : 16:55:00
This answers my question also:
http://www.sqlservercentral.com/articles/Backup+%2f+Restore/66564/

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-08-23 : 01:24:02
Depending on how the environment size , it's of value to create a report , which run regularly. The report should include information on every database - including when it was last backed up. That way you can pick up on any anomalies in your backup strategy

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

Abu-Dina
Posting Yak Master

206 Posts

Posted - 2012-08-23 : 03:16:23
quote:
Originally posted by jackv

Depending on how the environment size , it's of value to create a report , which run regularly. The report should include information on every database - including when it was last backed up. That way you can pick up on any anomalies in your backup strategy

Jack Vamvas
--------------------
http://www.sqlserver-dba.com



Thanks Jack.
That's the idea. The IT Manager who runs the backup jobs thinks there are databases being missed in the backup process. A report should hopefully highlight this if it's true.

Will report back in a couple of weeks on my progress.

Regards.
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-08-23 : 13:15:04
OK, let us know how you get on

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -