Use below queries one by one and hopefully, you will be able to find and fix your Database Mail issue.
- sysmail_help_queue_sp @queue_type = ‘Mail’
- select * from sysmail_event_log
- select * from sysmail_allitems
- select is_broker_enabled from sys.databases where name=’msdb’
As part of SQL server database maintenance, the indexes have to be defragmented on regular basis by rebuild or reorganize for consistant performance. Most of the time, the index maintenance jobs fail in the middle for large databases due to insufficient storage in log files and the entire rebuild process has to be restarted. This consumes a lot of time and also causes prolonged performance issues.
To tackle this, I have scripts which could resume from where it stopped. Even if the defragmentation(Rebuild/Reorg) fails in the middle due to some reason, it will continue from the table it stopped.
Continue reading “Resumable Auto-Index Rebuild and Reorganize Script”