• Excellent script - thank you. We had to make a small change to it to make it work for us. All it needed was square brackets before and after the database name. Some of our databases had names like 001 and these failed if we didn't.