What is query of display the all tables in SQL server ?
Editorial / Best Answersantanukd
Just replace "[your-schema-name-here]" in the following query with your schema name. Hope it comes handy to some of you out there.
Select 'TABLE' as OBJECT_TYPE, TABLE_NAME as OBJECT_NAME, TABLE_SCHEMA as OBJECT_SCHEMA from information_schema.VIEWS
Select 'VIEW' as OBJECT_TYPE, TABLE_NAME as OBJECT_NAME, TABLE_SCHEMA as OBJECT_SCHEMA from information_schema.VIEWS
Select 'INDEX[Type:Name:Table]' as OBJECT_TYPE, concat(CONSTRAINT_TYPE,' : ',CONSTRAINT_NAME,' : ',TABLE_NAME) as OBJECT_NAME,TABLE_SCHEMA AS OBJECT_SCHEMA from information_schema.TABLE_CONSTRAINTS
Select 'Procedure/Functions' as OBJECT_TYPE, ROUTINE_NAME as OBJECT_NAME, ROUTINE_SCHEMA as OBJECT_SCHEMA from information_schema.ROUTINES
Showing Answers 1 - 16 of 16 Answers
- Websphere application server qeustion
- Question on array
- How to tune plugin-configuration file in websphere application server
- Distinct values
- Request timeout of servers while ping
- Where does Oracle stores the tables ?
- Design a dwh table based on the given source
- What type of proactive measures you take for managing the windows server ?
- Mail server communication issue for all users in a lan
- How much time should it to take to set up a server with 5 workstations and network it?
- How do you install print server in windows 2008 /2008 r2 server core?
- What is memory in server and types of it(paged/non paged)
- Create a report on single query to display year wise sales in chart and current month in table in webi
- How do you find why the particular query running slow?
- RMAN backup
- What is the diff b/w jira, bugzilla and tfs(team foundation server)?
- What is the command for below question ?
- Ssl hand shake
- Interview questions on hogan core banking testing