You can use the sql query below and instead of else you can add when conditions to get your count for the rest of object types.
SELECT CASE
WHEN type = 'P' Then 'Procedures'
WHEN type = 'U' Then 'User Tables'
WHEN type = 'S' Then 'System Tables'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.