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 |
Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration
Describe and explain about SQL native client?
Why does sql studio use a single registered database repository? : sql server management studio
select names starts with a,b,c
8 Answers Scope International,
but what if you have to create a database with two filegroups, one on drive c and the other on drive d with log on drive e with an initial size of 600 mb and with a growth factor of 15%? : Sql server database administration
what purpose does OPENXML clause have in sql server stored procedure?
List the different types of joins?
What are the new features in SQL Server 2005 when compared to SQL Server 2000?
what is a stored procedure and trigger?
What are sql server functions?
Is SET a SQL Keyword?
How many types of relations are there between dimension and measure group? : sql server analysis services, ssas
Oracle (3259)
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)