In Sql Server, I find that, when I mark a database as read only, its existing large transaction log remains. To fix this I have to set it back to writeable, then dbcc shrinkfile on the log file, then set it read-only again.
What is the use of a transaction log if the database is read only? Is there a reason it doesn't just get deleted/flushed?