Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got an instance with dozens of DB's, and I need to know the total spaced used by all the DB's. I don't want to have to do sp_spaceused on each of them. Could I do a foreach loop and add them all up, or something like that? Or is there some system stored proc that will do the job?

share|improve this question
add comment

1 Answer

If the DBs are on their own partitions, df -h will return the information under *nix. If they're in their own directories, you can run du -hS.

Not sure how you'd do it inside Sybase itself, though.

share|improve this answer
    
I hadn't thought of that approach... Thanks Warren! –  theog Sep 23 '09 at 15:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.