I have a growing transaction log. To change the recovery model to simple do I need exclusive access to the database? Can I change it while users are accessing the database?
Why are you changing to SIMPLE mode? Just because the transaction log is growing isn't really a good enough reason. Once you change to SIMPLE mode, you no longer have the ability to restore to a point-in-time.
If you are doing reindexing, the transaction log will grow large regardless of what mode you are in. Why? Consider the reindex as a transaction, until the reindex is done (committed), it needs to be able to rollback the transaction.
Are you set for FULL Recovery mode and doing frequent transaction log backups or have you just been doing full backups?
The log file grew upto 35GB and database crashed. We disconnected the database and tried to restore a backup from Sunday. But the transaction file of the backup was 35GB and we couldn’t restore it because it was too big. The tables in the database contain data from the AS400. Periodically we copy data from the AS400 to the SQL Server. What matters is the structure of the database not the data it self. If we loose the data we have jobs that can copy the data pretty fast. But yesterday we lost database itself and we couldn’t recover it.
Been using this way of doing things when things have been getting a little hairy.. Guess it is a little late for you if the database has already crashed though. Not a big fan of putting the database in simple mode myself..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.