Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

SQL Server 2008, standard log shipping setup (well, using redgate, but it is a pretty normal flow).

On the replica, the log file is pretty big.

Wondering if on the backup/replica servers it is OK to shrink the log in some way?

Thanks!

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

The log file on the replica follows exactly the file on the master. They can't be different. You can shrink the master and the replica will automatically change to match.

share|improve this answer
add comment

Running DBCC SHRINKFILE without the TRUNCATEONLY option on the primary will propagate the change to the secondary once the log is applied, so it will shrink to the same size..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.