Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.