We can use below code snippets to retrieve the information related to the user defined object.
Code Snippets:
- SELECT name AS ObjectName,
- type,
- OBJECT_NAME(schema_id) SchemaName,
- OBJECT_NAME(parent_object_id) ParentObjectName, *
- FROM sys.objects
- WHERE type = 'U'
Output:
| Symbol | User Defined Object |
| C | Check Constraint |
| D | Default |
| P | SQL Stored Stored Procedure |
| AF | Aggregate Function |
| F | Foreign Key |
| FN | SQL Scalar Function |
| S | System Table |
| SN | Synonym |
| V | View |
| IT | Internal Table |
| U | User Table |
| TR | Trigger |
| UQ | Unique Constraint |
| X | Extended Stored Procedure |
| IF | Inline Tabled valued Function |
| PK | Primary Key |
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Bhuvanesh MohankumarPosted May 18, 2016, 7:43 AM
Nice Pankaj
Anbu ManiPosted May 18, 2016, 12:12 AM
Nice