Have sql 2008 with about 25 or so Databases, with varying recovery models... backups have been failing so logs have the disk full, I want to set them all to simple and shrink them. I know how to do it one at a time but was wondering if there is a trick to do all?
DatabasesSQLMicrosoft SQL ServerMicrosoft SQL Server 2008
Last Comment
leadtheway
8/22/2022 - Mon
Aneesh
You have to run the statement on multiple Query windows..
Also you need to figure out to avoid this process in future. best way to do so is to have proper backups scheduled for these databases.
Shrinking the databases has a performance impact.
leadtheway
ASKER
yes i'm aware, but this was dropped into my lap with weeks of no backups..So i guess the answer to my question is no..not shrinking the data, shrinking the log
Also you need to figure out to avoid this process in future. best way to do so is to have proper backups scheduled for these databases.
Shrinking the databases has a performance impact.