To display list of tables in database

How to display list of tables from a particular database in MS-SQL
How to display description of that particular table?

Questions by vijju31_1985

Showing Answers 1 - 9 of 9 Answers

LGSGEEK

  • Mar 29th, 2008
 

Submit a query on the SYS.TABLES table to get all of the data about the tables in a specific database.  Be sure to specify the database that you are targeting.

USE <database name> -- Specify your target database name (without the brackets)

GO

 SELECT * FROM SYS.TABLES
GO

  Was this answer useful?  Yes

cybersavvy

  • Feb 19th, 2009
 

To Display list of tables in the database:
SELECT * FROM INFROMATION_SCHEMA.TABLES WHERE TYPE='basetable'

To describe the structure of a particular table
SP_HELP table_name;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions