How do I list the available tables in a database I'm
querying?
Answers were Sorted based on User's Feedback
Answer / guest
You can get a list of tables in a database by calling the
INFORMATION_SCHEMA.Tables view like this:
SELECT * FROM information_schema.tables
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / kumar.t
Simple query
To Display only user created table.
Select * from sysobjects where xtype='u'
To Display all table.
Select * from sysobjects
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sanjeev kumar
First Method:
select table_name from information_schema.tables
Second Method:
Select Name from sysobjects where xtype='u'
Note: here 'u' means user created
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you understand by sql server agent?
Find first and last day of current month in sql server
What is a trace frag?
How do you manipulate data?
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration
Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?
What are the different types of backup avaible in SQL SErver
How to add a new dsn with the odbc driver for sql server?
how can you check the level of fragmentation on a table? : Sql server administration
What extended events?
What language is sql server written in?
What is awe?
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)