Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Transaction Log Backup and Shrink Database Order in Maintenance Plan

$
0
0

Hi,

I found pretty interesting Maintenance Plan's behaviour:

My goal is obvious is - to reduce the size of transaction log, I'm able to achieve it only if I have following sequence in Maintenance Plan:

1. Backup Database Task, Type - Transactional Log

2. Shrink DataBase Task

3. Backup Database Task, Type - Transactional Log

4. Execute T_SQL Statement - DBCC SHRINKFILE(Translational Log,Size)

For some reason I have to duplicate -  Backup Database Task, Type - Transactional Log.

Doe anybody now why?

Thanks!


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>