• am I missing something here? whats wrong with sp_help?

    you can look at the code in sp_help to see how it's done if you only want a subset of what sp_help gives you.

    ---------------------------------------------------------------------