How to Get The List Of All Tables in a Database – Sql Server 2005

We a can get the list of all tables of a database in different ways : -

1.

SELECT *
FROM sys.TABLES

2.

SELECT *
FROM sysobjects
WHERE TYPE='U'

3.

SELECT *
FROM information_schema.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'

Popularity: 2% [?]

Related posts:

  1. View Existing Triggers – Drop One or More Triggers in Sql Server 2005
  2. Check Sql Server database is Case Sensitive or Insensitive (Collation)
  3. Create Database,Table and Procedure in Sql Server – Beginners
  4. Sql Server Interview Questions – Part 1
  5. CASE Function in SQL Server 2005
You can leave a response, or trackback from your own site.

Leave a Reply

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars