maintenance-plan

SQL Server 2008 Maintenance Plan Backup List

对着背影说爱祢 提交于 2020-02-05 05:12:31
问题 I'm working on a Maintenance Plan for doing Backups on my server. I just want to know if SQL Server maintains a list of the backup files that were created during the backup process? Thanks a lot! 回答1: USE DatabaseName GO SELECT s.database_name, m.physical_device_name, CAST(CAST(s.backup_size / 1000000 AS INT) AS VARCHAR(14)) + ' ' + 'MB' AS bkSize, CAST(DATEDIFF(second, s.backup_start_date, s.backup_finish_date) AS VARCHAR(4)) + ' ' + 'Seconds' TimeTaken, s.backup_start_date, CAST(s.first_lsn

SQL Server 2008 Maintenance Plan Backup List

 ̄綄美尐妖づ 提交于 2020-02-05 05:12:28
问题 I'm working on a Maintenance Plan for doing Backups on my server. I just want to know if SQL Server maintains a list of the backup files that were created during the backup process? Thanks a lot! 回答1: USE DatabaseName GO SELECT s.database_name, m.physical_device_name, CAST(CAST(s.backup_size / 1000000 AS INT) AS VARCHAR(14)) + ' ' + 'MB' AS bkSize, CAST(DATEDIFF(second, s.backup_start_date, s.backup_finish_date) AS VARCHAR(4)) + ' ' + 'Seconds' TimeTaken, s.backup_start_date, CAST(s.first_lsn

How to display Maintenance page for my application deployed in Tomcat?

爷,独闯天下 提交于 2020-01-22 15:59:26
问题 Considering I have multiple applications deployed in Tomcat. I had planned for maintenance for a particular application. So I want to block the request for that particular application and redirect to a static page, informing the users it is in a planned maintenance. To achieve this with tomcat configuration, is it possible? Any help will be appreciated. Thanks! 回答1: My solution, that I haven't seen else where, relies on the use of the RewriteValve, so it's dedicated to SO users. You will need

How often should the indexes be rebuilt in our SQL Server database?

喜欢而已 提交于 2019-12-17 22:29:33
问题 Currently our database has size 10 GB and is growing by around 3 GB per month. Often I hear that one should from time to time rebuild the indexes, to improve the query execution time. So how often should I rebuild the indexes in the given scenario? 回答1: There's a general consensus that you should reorganize ("defragment") your indices as soon as index fragmentation reaches more than 5 (sometimes 10%), and you should rebuild them completely when it goes beyond 30% (at least that's the numbers

CRM Job Maintenance Logs in SQL Database

痴心易碎 提交于 2019-12-12 03:36:40
问题 We are managing our CRM 2013 (on-premise) maintenance jobs via the "CRM 2011 Job Editor" (downloadable from Codeplex here: https://crmjobeditor.codeplex.com/). We have set a reindexing job to run daily, however we would like to double-check if the job might not run on certain days due to errors or whatnot. Do you know if there are any written logs of the CRM maintenance jobs, if it's writing any history logs into the SQL database somewhere? I see from CRM Trace when certain performance task

SQL Maintenance Cleanup Task Working but Not Deleting

强颜欢笑 提交于 2019-12-09 05:02:56
问题 I have a Maintenance Plan that is suppose to go through the BACKUP folder and remove all .bak older than 5 days. When I run the job, it gives me a success message but older .bak files are still present. I've tried the step at the following question: https://serverfault.com/questions/245493/sql-maintenance-cleanup-task-success-but-not-deleting-files Result is column IsDamaged = 0 I've verified with the following question and this is not my issue: https://serverfault.com/questions/94094

Reorganise index vs Rebuild Index in Sql Server Maintenance plan

走远了吗. 提交于 2019-11-30 10:47:11
问题 In the SSW rules to better SQL Server Database there is an example of a full database maintenance plan: SSW. In the example they run both a Reorganize Index and then a Rebuild Index and then Update Statistics. Is there any point to this? I thought Reorganize Index was a fast but less effective version of Rebuild Index? and that an index rebuild would also update the statistics automatically (on the clustered index at least). 回答1: Doing a REORGANIZE and then a REBUILD on the same indexes is