Hi @Ashwan ,
Please try this:
SELECT type,type_desc,count(*)
FROM sys.all_objects
where type IN ('P', 'V', 'FN', 'TR', 'IF', 'TF', 'U','SO','PK')
and is_ms_shipped = 0
group by type,type_desc
This will provide a list of all user-defined objects (is_ms_shipped=0). In addition, please refer to sys.all_objects which might help.
Best Regards,
Amelia
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.