SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL SERVER 2012 MAINTANANCE TASK- BEST PRACTICE


SQL SERVER 2012 MAINTANANCE TASK- BEST PRACTICE

Author
Message
ratheesh4sql
ratheesh4sql
SSC-Enthusiastic
SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)

Group: General Forum Members
Points: 135 Visits: 178
Hi All,

Can u anyone suggest me for best practice maintenance task in sql server 2012.

I am planning to do the following in my Always on server- Production database.

1. Full Backup -- Every day
2. Diff Backup -- Every 4 Hourly
3. Log Backup-- Every One hour.
4.Check database integrity -- Every day
5. Reorganize and update statistics -- Weekly basis
6. Rebuild index -- Every two Weeks
7. sp_delete_backuphistory & sp_purge_jobhistory & Output File Cleanup every Week.


Thanks for you help in advance.
SQL Show
SQL Show
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1078
Rebuild index should be done on Fragementation level not on day basis.

Better check fragmentation level daily and go rebuid/reorganize according to fragementation %.. You can get good script in online to do this.
TheSQLGuru
TheSQLGuru
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12252 Visits: 8542
ratheesh4sql (3/1/2013)
Hi All,

Can u anyone suggest me for best practice maintenance task in sql server 2012.

I am planning to do the following in my Always on server- Production database.

1. Full Backup -- Every day
2. Diff Backup -- Every 4 Hourly
3. Log Backup-- Every One hour.
4.Check database integrity -- Every day
5. Reorganize and update statistics -- Weekly basis
6. Rebuild index -- Every two Weeks
7. sp_delete_backuphistory & sp_purge_jobhistory & Output File Cleanup every Week.


Thanks for you help in advance.


A. Personally I think you are wasting effort with a 4 hour diff. Just use tlog backups. There will only be a max of 23 of them per day and then you switch back to another FULL baseline.

B. Go immediately to Ola.Hallengren.com and get and learn to use his FREE, AWESOME, FULLY DOCUMENTED maintenance suite. Do NOT use maintenance plans for the stuff you mention above!!

Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
ratheesh4sql
ratheesh4sql
SSC-Enthusiastic
SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)SSC-Enthusiastic (135 reputation)

Group: General Forum Members
Points: 135 Visits: 178
Hi,


Thank you very much for your reply....

Using the Ola.Hallengren.com scipts..am not able to take the full backup of my Always on Seconday database.

Can u suggest me to schedule full backup from the Always on seconday db..?

Thank you.
TheSQLGuru
TheSQLGuru
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12252 Visits: 8542
ratheesh4sql (3/2/2013)
Hi,


Thank you very much for your reply....

Using the Ola.Hallengren.com scipts..am not able to take the full backup of my Always on Seconday database.

Can u suggest me to schedule full backup from the Always on seconday db..?

Thank you.


From here, http://ola.hallengren.com/, Ola mentions specifically support for SQL 2012, including noting that mirrors can be readable and used for backups. Please get the latest version of his scripts and see if that will allow you to backup a replica.

I cannot recommend a schedule for you because I have no idea what your company's needs are from an RPT and RTO perspective. I STRONGLY encourage you to engage a professional to review your company's needs and discuss options and help you implement an HA/DR plan that meets those needs and which you can afford.

Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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