Avatar of leadtheway
leadtheway
Flag for United States of America asked on

Shrink multiple databases at once

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

Avatar of undefined
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
ASKER CERTIFIED SOLUTION
Aneesh

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
leadtheway

ASKER
yeah i figured, was hoping though..lol, thanks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck