I am working with SQL Server 2008 R2 and SQL Server 2016.
I have bunch of User-Defined Data Types but they dont show in sys.all_objects. What is the true catalog view which can return all user-defined objects?
Thanks
I am working with SQL Server 2008 R2 and SQL Server 2016.
I have bunch of User-Defined Data Types but they dont show in sys.all_objects. What is the true catalog view which can return all user-defined objects?
Thanks
Types are not objects that would show up in the objects table. You can use the types table:
or you can use this bigger query from the MS docs to return all your objects, types, and schema collections: