How to list all objects in a given schema?
Answer / Shreyansh Verma
To list all objects in a specific schema, use the OBJECT command. Here's an example:
```sql
OBJECT_NAMES(object_id::[SchemaName], [type])
```
Replace `[SchemaName]` with the name of your schema and `[type]` with the type of object you want to list (e.g., U for user-defined functions, P for procedures, Tr for triggers, etc.).
| Is This Answer Correct ? | 0 Yes | 0 No |
Why use “in” clause in sql server?
Difference between server.transfer and server.execute method?
What is excution Plan in sql server
1 Answers CarrizalSoft Technologies, TCS,
How to remove duplicate rows from table except one?
How can I track the changes or identify the latest insert-update-delete from a table?
CLR Integration ? what is Notification services ?
Is it possible to delete duplicate rows in a table without using a temporary table ?
Does partitioning improve performance sql server?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
How to drop existing indexes in ms sql server?
What's the information that can be stored inside a bit column?
What is #table in sql server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)